@@ -1,9 +1,7 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, fetchpatch
5−, isPy27
6−, future
4+, pythonOlder
75, h5py
86, ipython
97, numba
@@ -15,25 +13,16 @@
1513
1614buildPythonPackage rec {
1715 pname = "clifford";
18− version = "1.3.1";
19− disabled = isPy27;
16+ version = "1.4.0";
17+
18+ disabled = pythonOlder "3.5";
2019
2120 src = fetchPypi {
2221 inherit pname version;
23− sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c";
22+ sha256 = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
2423 };
2524
26− patches = [
27− (fetchpatch {
28− # Compatibility with h5py 3.
29− # Will be included in the next releasse after 1.3.1
30− url = "https://github.com/pygae/clifford/pull/388/commits/955d141662c68d3d61aa50a162b39e656684c208.patch";
31− sha256 = "0pkpwnk0kfdxsbzsxqlqh8kgif17l5has0mg31g3kyp8lncj89b1";
32− })
33− ];
34−
3525 propagatedBuildInputs = [
36− future
3726 h5py
3827 numba
3928 numpy
@@ -55,15 +44,24 @@ buildPythonPackage rec {
5544 "veryslow"
5645 "test_algebra_initialisation"
5746 "test_cga"
58− "test_estimate_rotor_sequential[random_sphere]"
47+ "test_grade_projection"
48+ "test_multiple_grade_projection"
49+ "test_inverse"
50+ "test_inv_g4"
5951 ];
6052
53+ disabledTestPaths = [
54+ # Disable failing tests
55+ "test_g3c_tools.py"
56+ "test_multivector_inverse.py"
57+ ];
58+
59+ pythonImportsCheck = [ "clifford" ];
60+
6161 meta = with lib; {
6262 description = "Numerical Geometric Algebra Module";
6363 homepage = "https://clifford.readthedocs.io";
6464 license = licenses.bsd3;
65− maintainers = [ maintainers.costrouc ];
66− # many TypeError's in tests
67− broken = true;
65+ maintainers = with maintainers; [ costrouc ];
6866 };
6967}