From d65aba684ff038eff461d8ffbb054c92d6c5e5a7 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 4 Oct 2020 10:58:28 -0700 Subject: [PATCH] python3Packages.clifford: fix tests --- .../python-modules/clifford/default.nix | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/clifford/default.nix b/pkgs/development/python-modules/clifford/default.nix index 99a2126ee98..9fe60ba55da 100644 --- a/pkgs/development/python-modules/clifford/default.nix +++ b/pkgs/development/python-modules/clifford/default.nix @@ -1,14 +1,15 @@ { lib , buildPythonPackage , fetchPypi -, numpy -, scipy -, sparse -, numba +, isPy27 , future , h5py -, nose -, isPy27 +, ipython +, numba +, numpy +, pytestCheckHook +, scipy +, sparse }: buildPythonPackage rec { @@ -22,27 +23,35 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ + future + h5py + numba numpy scipy sparse - numba - future - h5py ]; checkInputs = [ - nose + pytestCheckHook + ipython ]; - preConfigure = '' + postPatch = '' substituteInPlace setup.py \ --replace "'numba==0.43'" "'numba'" ''; - checkPhase = '' - nosetests + # avoid collecting local files + preCheck = '' + cd clifford/test ''; + pytestFlagsArray = [ + "-m \"not veryslow\"" + "--ignore=test_algebra_initialisation.py" # fails without JIT + "--ignore=test_cga.py" + ]; + meta = with lib; { description = "Numerical Geometric Algebra Module"; homepage = "https://clifford.readthedocs.io";