Skip to content

Commit 897f4ea

Browse files
committed
python312Packages.rustworkx: enable tests
1 parent b685ddd commit 897f4ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
libiconv,
1414
stdenv,
1515
lib,
16+
pytestCheckHook,
1617
}:
1718

1819
buildPythonPackage rec {
@@ -45,12 +46,17 @@ buildPythonPackage rec {
4546

4647
buildInputs = [ numpy ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
4748

48-
checkInputs = [
49+
nativeCheckInputs = [
4950
fixtures
5051
networkx
52+
pytestCheckHook
5153
testtools
5254
];
5355

56+
preCheck = ''
57+
rm -r rustworkx
58+
'';
59+
5460
pythonImportsCheck = [ "rustworkx" ];
5561

5662
meta = with lib; {

0 commit comments

Comments
 (0)