1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, scipy
6, sparse
7, numba
8, future
9, h5py
10, nose
11, isPy27
12}:
13
14buildPythonPackage rec {
15 pname = "clifford";
16 version = "1.3.1";
17 disabled = isPy27;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c";
22 };
23
24 propagatedBuildInputs = [
25 numpy
26 scipy
27 sparse
28 numba
29 future
30 h5py
31 ];
32
33 checkInputs = [
34 nose
35 ];
36
37 preConfigure = ''
38 substituteInPlace setup.py \
39 --replace "'numba==0.43'" "'numba'"
40 '';
41
42 checkPhase = ''
43 nosetests
44 '';
45
46 meta = with lib; {
47 description = "Numerical Geometric Algebra Module";
48 homepage = "https://clifford.readthedocs.io";
49 license = licenses.bsd3;
50 maintainers = [ maintainers.costrouc ];
51 };
52}