diff options
author | Weijia Wang | 2024-11-14 20:47:00 +0100 |
---|---|---|
committer | GitHub | 2024-11-14 20:47:00 +0100 |
commit | f4a0fbc120cd775346111246b453f8af94afc1d1 (patch) | |
tree | c16d0f9b7880dd47cdfc69b9bbe11ab03e7115b1 | |
parent | 73bb02c4e42e6403190fdc73dcc483e2df2dd4c5 (diff) | |
parent | e3cf29c5eb6da8dd6c9d7e03ff0978a95bb2e05e (diff) |
[Backport release-24.11] python312Packages.viewstate: unbreak, switch to pyproject (#355963) nixos-24.11-small
-rw-r--r-- | pkgs/development/python-modules/viewstate/default.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/viewstate/default.nix b/pkgs/development/python-modules/viewstate/default.nix index d3824b2c36a3..523480b3a4a4 100644 --- a/pkgs/development/python-modules/viewstate/default.nix +++ b/pkgs/development/python-modules/viewstate/default.nix @@ -1,16 +1,15 @@ { + lib, buildPythonPackage, fetchFromGitHub, - isPy3k, - lib, - pytest, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { pname = "viewstate"; version = "0.6.0"; - format = "setuptools"; - disabled = !isPy3k; + pyproject = true; src = fetchFromGitHub { owner = "yuvadm"; @@ -19,11 +18,11 @@ buildPythonPackage rec { sha256 = "sha256-cXT5niE3rNdqmNqnITWy9c9/MF0gZ6LU2i1uzfOzkUI="; }; - nativeCheckInputs = [ pytest ]; + build-system = [ poetry-core ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ + pytestCheckHook + ]; meta = { description = ".NET viewstate decoder"; |