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.
This commit is contained in:
Robert Scott 2020-09-26 12:16:38 +01:00 committed by Jon
parent bcd728c9bf
commit 99175cfbf6

View File

@ -7,9 +7,8 @@
, pybind11 , pybind11
, pyfma , pyfma
, eigen , eigen
, pytest , pytestCheckHook
, matplotlib , matplotlib
, perfplot
, isPy27 , isPy27
}: }:
@ -35,9 +34,8 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
matplotlib matplotlib
perfplot
]; ];
postConfigure = '' postConfigure = ''
@ -49,9 +47,15 @@ buildPythonPackage rec {
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
''; '';
checkPhase = '' # performance tests aren't useful to us and disabling them allows us to
pytest test # 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; { meta = with lib; {
description = "Accurate sums and dot products for Python"; description = "Accurate sums and dot products for Python";