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