diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-10-04 10:58:28 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-10-04 14:08:17 -0700 |
commit | d65aba684ff038eff461d8ffbb054c92d6c5e5a7 (patch) | |
tree | 8ebc1f1870feee4cbc66708d559c83537295437b /pkgs/development/python-modules/clifford | |
parent | 74c997d02504556f0a3b752f4783af1d78cd7d69 (diff) | |
download | nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar.gz nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar.bz2 nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar.lz nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar.xz nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.tar.zst nixpkgs-d65aba684ff038eff461d8ffbb054c92d6c5e5a7.zip |
python3Packages.clifford: fix tests
Diffstat (limited to 'pkgs/development/python-modules/clifford')
-rw-r--r-- | pkgs/development/python-modules/clifford/default.nix | 33 |
1 files changed, 21 insertions, 12 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 +, isPy27 +, future +, h5py +, ipython +, numba , numpy +, pytestCheckHook , scipy , sparse -, numba -, future -, h5py -, nose -, isPy27 }: 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"; |