diff options
Diffstat (limited to 'pkgs/development/python-modules')
-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 |