3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/clifford/default.nix

51 lines
786 B
Nix
Raw Normal View History

2019-07-14 23:09:01 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, numba
, future
, h5py
, nose
, isPy27
}:
buildPythonPackage rec {
pname = "clifford";
version = "1.0.4";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "7fc5aa76b4f73c697c0ebd2f86c5233e7ca0a5109b80147f4e711bc3de4b3f2c";
};
propagatedBuildInputs = [
numpy
scipy
numba
future
h5py
];
checkInputs = [
nose
];
preConfigure = ''
substituteInPlace setup.py \
--replace "'numba==0.43'" "'numba'"
'';
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "Numerical Geometric Algebra Module";
homepage = https://clifford.readthedocs.io;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}