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