1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, h5py 6, ipython 7, numba 8, numpy 9, pytestCheckHook 10, scipy 11, sparse 12}: 13 14buildPythonPackage rec { 15 pname = "clifford"; 16 version = "1.4.0"; 17 18 disabled = pythonOlder "3.5"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0="; 23 }; 24 25 propagatedBuildInputs = [ 26 h5py 27 numba 28 numpy 29 scipy 30 sparse 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ipython 36 ]; 37 38 # avoid collecting local files 39 preCheck = '' 40 cd clifford/test 41 ''; 42 43 disabledTests = [ 44 "veryslow" 45 "test_algebra_initialisation" 46 "test_cga" 47 "test_grade_projection" 48 "test_multiple_grade_projection" 49 "test_inverse" 50 "test_inv_g4" 51 ]; 52 53 disabledTestPaths = [ 54 # Disable failing tests 55 "test_g3c_tools.py" 56 "test_multivector_inverse.py" 57 ]; 58 59 pythonImportsCheck = [ "clifford" ]; 60 61 meta = with lib; { 62 description = "Numerical Geometric Algebra Module"; 63 homepage = "https://clifford.readthedocs.io"; 64 license = licenses.bsd3; 65 maintainers = with maintainers; [ ]; 66 }; 67}