From 028a22bd342f4e7883dd6d8fd049f6482906506b Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 14 Nov 2024 04:07:54 +0100 Subject: [PATCH] python312Packages.viewstate: unbreak, switch to pyproject, run checks --- .../python-modules/viewstate/default.nix | 17 ++++++++--------- 1 file 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";