diff options
author | Robert Scott <code@humanleg.org.uk> | 2020-09-26 12:16:38 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-09-26 12:22:16 -0700 |
commit | 99175cfbf6c75f85ac7b4c7d17a28d0b7e1e2fad (patch) | |
tree | 64ee47b134ee53005f38b61185345c4a38f8474f /pkgs/development/python-modules/accupy | |
parent | bcd728c9bfade2df98888207f50e0515a3da99a1 (diff) |
pythonPackages.accupy: remove perfplot from checkInputs
they were only used for performance tests that aren't useful to us -
disabling these tests allows us to decouple from an unnecessary build
dependency.
convert to pytestCheckHook.
Diffstat (limited to 'pkgs/development/python-modules/accupy')
-rw-r--r-- | pkgs/development/python-modules/accupy/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/accupy/default.nix b/pkgs/development/python-modules/accupy/default.nix index f8d56159cc59..f36e12b365ab 100644 --- a/pkgs/development/python-modules/accupy/default.nix +++ b/pkgs/development/python-modules/accupy/default.nix @@ -7,9 +7,8 @@ , pybind11 , pyfma , eigen -, pytest +, pytestCheckHook , matplotlib -, perfplot , isPy27 }: @@ -35,9 +34,8 @@ buildPythonPackage rec { ]; checkInputs = [ - pytest + pytestCheckHook matplotlib - perfplot ]; postConfigure = '' @@ -49,9 +47,15 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - checkPhase = '' - pytest test + # performance tests aren't useful to us and disabling them allows us to + # decouple ourselves from an unnecessary build dep + preCheck = '' + for f in test/test*.py ; do + substituteInPlace $f --replace 'import perfplot' "" + done ''; + disabledTests = [ "test_speed_comparison1" "test_speed_comparison2" ]; + pythonImportsCheck = [ "accupy" ]; meta = with lib; { description = "Accurate sums and dot products for Python"; |