2019-07-14 23:09:01 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, future
|
|
|
|
, h5py
|
|
|
|
, nose
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clifford";
|
2019-12-19 19:31:08 +00:00
|
|
|
version = "1.2.0";
|
2019-07-14 23:09:01 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:08 +00:00
|
|
|
sha256 = "b27fdec70574ac928c91fe333a70ece153d75cd0499cce09acea5980ae349bee";
|
2019-07-14 23:09:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://clifford.readthedocs.io";
|
2019-07-14 23:09:01 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|