diff options
author | linsui <36977733+linsui@users.noreply.github.com> | 2024-09-15 15:40:19 +0800 |
---|---|---|
committer | GaƩtan Lepage <33058747+GaetanLepage@users.noreply.github.com> | 2024-09-28 18:17:55 +0200 |
commit | d7dcc7b27217339a42645ecafd03a69ea0a04c3c (patch) | |
tree | 894f1d36aeca00a6a4eb6957a50bba2261c76727 | |
parent | 06311057ca2a66852968529532ae319bdbac5dae (diff) |
biliass: 1.3.11 -> 2.0.0-beta.1
-rw-r--r-- | pkgs/development/python-modules/biliass/default.nix | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/biliass/default.nix b/pkgs/development/python-modules/biliass/default.nix index 75e799ce44b97..43cb84bac0ed1 100644 --- a/pkgs/development/python-modules/biliass/default.nix +++ b/pkgs/development/python-modules/biliass/default.nix @@ -2,29 +2,39 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonOlder, - poetry-core, - protobuf, + rustPlatform, pytestCheckHook, }: buildPythonPackage rec { pname = "biliass"; - version = "1.3.11"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + version = "2.0.0-beta.1"; + pyproject = true; src = fetchFromGitHub { owner = "yutto-dev"; - repo = "biliass"; - rev = "refs/tags/v${version}"; - hash = "sha256-hBorYAqtxTZ4LElxxJOGxC2g7sBRhRKVv6HOVHZn9FA="; + repo = "yutto"; + rev = "refs/tags/biliass@${version}"; + hash = "sha256-Clma0Ggkphk6F+K+h3TdMUX4WyWQorh9g2uAT4+Fc9I="; }; - nativeBuildInputs = [ poetry-core ]; + sourceRoot = "source/packages/biliass"; + cargoRoot = "rust"; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit + pname + version + src + ; + sourceRoot = "${sourceRoot}/${cargoRoot}"; + hash = "sha256-h/UOolWQ2k5krOZy/kPywpeiLyXWLzvNu+pcn97or1A="; + }; - propagatedBuildInputs = [ protobuf ]; + nativeBuildInputs = with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]; doCheck = false; # test artifacts missing |