python312Packages.i-pi: enable tests

This commit is contained in:
natsukium 2024-08-17 23:51:31 +09:00
parent b08afbf6e8
commit 64f4dfaf9a
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -6,9 +6,11 @@
makeWrapper,
setuptools,
numpy,
pytest,
distutils,
pytestCheckHook,
mock,
pytest-mock,
pythonAtLeast,
}:
buildPythonPackage rec {
@ -33,10 +35,12 @@ buildPythonPackage rec {
dependencies = [ numpy ];
nativeCheckInputs = [
pytest
pytestCheckHook
mock
pytest-mock
];
] ++ lib.optional (pythonAtLeast "3.12") distutils;
pytestFlagsArray = [ "ipi_tests/unit_tests" ];
postFixup = ''
wrapProgram $out/bin/i-pi \