diff --git a/pkgs/development/python-modules/clifford/default.nix b/pkgs/development/python-modules/clifford/default.nix index b26689cf38cc..9a7be23938c0 100644 --- a/pkgs/development/python-modules/clifford/default.nix +++ b/pkgs/development/python-modules/clifford/default.nix @@ -1,9 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, fetchpatch -, isPy27 -, future +, pythonOlder , h5py , ipython , numba @@ -15,25 +13,16 @@ buildPythonPackage rec { pname = "clifford"; - version = "1.3.1"; - disabled = isPy27; + version = "1.4.0"; + + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c"; + sha256 = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0="; }; - patches = [ - (fetchpatch { - # Compatibility with h5py 3. - # Will be included in the next releasse after 1.3.1 - url = "https://github.com/pygae/clifford/pull/388/commits/955d141662c68d3d61aa50a162b39e656684c208.patch"; - sha256 = "0pkpwnk0kfdxsbzsxqlqh8kgif17l5has0mg31g3kyp8lncj89b1"; - }) - ]; - propagatedBuildInputs = [ - future h5py numba numpy @@ -55,15 +44,24 @@ buildPythonPackage rec { "veryslow" "test_algebra_initialisation" "test_cga" - "test_estimate_rotor_sequential[random_sphere]" + "test_grade_projection" + "test_multiple_grade_projection" + "test_inverse" + "test_inv_g4" ]; + disabledTestPaths = [ + # Disable failing tests + "test_g3c_tools.py" + "test_multivector_inverse.py" + ]; + + pythonImportsCheck = [ "clifford" ]; + meta = with lib; { description = "Numerical Geometric Algebra Module"; homepage = "https://clifford.readthedocs.io"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; - # many TypeError's in tests - broken = true; + maintainers = with maintainers; [ costrouc ]; }; }