1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, isPy27
6, future
7, h5py
8, ipython
9, numba
10, numpy
11, pytestCheckHook
12, scipy
13, sparse
14}:
15
16buildPythonPackage rec {
17 pname = "clifford";
18 version = "1.3.1";
19 disabled = isPy27;
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c";
24 };
25
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
35 propagatedBuildInputs = [
36 future
37 h5py
38 numba
39 numpy
40 scipy
41 sparse
42 ];
43
44 checkInputs = [
45 pytestCheckHook
46 ipython
47 ];
48
49 # avoid collecting local files
50 preCheck = ''
51 cd clifford/test
52 '';
53
54 disabledTests = [
55 "veryslow"
56 "test_algebra_initialisation"
57 "test_cga"
58 "test_estimate_rotor_sequential[random_sphere]"
59 ];
60
61 meta = with lib; {
62 description = "Numerical Geometric Algebra Module";
63 homepage = "https://clifford.readthedocs.io";
64 license = licenses.bsd3;
65 maintainers = [ maintainers.costrouc ];
66 # many TypeError's in tests
67 broken = true;
68 };
69}