Skip to content

Commit e853a7f

Browse files
authored
python312Packages.viewstate: unbreak, switch to pyproject (#355805)
2 parents 69b07f5 + 028a22b commit e853a7f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pkgs/development/python-modules/viewstate/default.nix

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2+
lib,
23
buildPythonPackage,
34
fetchFromGitHub,
4-
isPy3k,
5-
lib,
6-
pytest,
5+
poetry-core,
6+
pytestCheckHook,
77
}:
88

99
buildPythonPackage rec {
1010
pname = "viewstate";
1111
version = "0.6.0";
12-
format = "setuptools";
13-
disabled = !isPy3k;
12+
pyproject = true;
1413

1514
src = fetchFromGitHub {
1615
owner = "yuvadm";
@@ -19,11 +18,11 @@ buildPythonPackage rec {
1918
sha256 = "sha256-cXT5niE3rNdqmNqnITWy9c9/MF0gZ6LU2i1uzfOzkUI=";
2019
};
2120

22-
nativeCheckInputs = [ pytest ];
21+
build-system = [ poetry-core ];
2322

24-
checkPhase = ''
25-
pytest
26-
'';
23+
nativeCheckInputs = [
24+
pytestCheckHook
25+
];
2726

2827
meta = {
2928
description = ".NET viewstate decoder";

0 commit comments

Comments
 (0)