python3Packages.clifford: fix tests

gstqt5
Jonathan Ringer 2020-10-04 10:58:28 -07:00 committed by Jon
parent 74c997d025
commit d65aba684f
1 changed files with 22 additions and 13 deletions

View File

@ -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";