2019-07-14 23:09:01 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-30 02:15:19 +00:00
|
|
|
, fetchpatch
|
2020-10-04 18:58:28 +01:00
|
|
|
, isPy27
|
|
|
|
, future
|
|
|
|
, h5py
|
|
|
|
, ipython
|
|
|
|
, numba
|
2019-07-14 23:09:01 +01:00
|
|
|
, numpy
|
2020-10-04 18:58:28 +01:00
|
|
|
, pytestCheckHook
|
2019-07-14 23:09:01 +01:00
|
|
|
, scipy
|
2020-08-29 19:53:51 +01:00
|
|
|
, sparse
|
2019-07-14 23:09:01 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clifford";
|
2020-06-06 07:47:01 +01:00
|
|
|
version = "1.3.1";
|
2019-07-14 23:09:01 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:01 +01:00
|
|
|
sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c";
|
2019-07-14 23:09:01 +01:00
|
|
|
};
|
2021-01-05 23:33:39 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Compatibility with h5py 3.
|
|
|
|
# Will be included in the next releasse after 1.3.1
|
|
|
|
url = "https://github.com/pygae/clifford/pull/388/commits/955d141662c68d3d61aa50a162b39e656684c208.patch";
|
|
|
|
sha256 = "0pkpwnk0kfdxsbzsxqlqh8kgif17l5has0mg31g3kyp8lncj89b1";
|
|
|
|
})
|
|
|
|
];
|
2019-07-14 23:09:01 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-10-04 18:58:28 +01:00
|
|
|
future
|
|
|
|
h5py
|
|
|
|
numba
|
2019-07-14 23:09:01 +01:00
|
|
|
numpy
|
|
|
|
scipy
|
2020-08-29 19:53:51 +01:00
|
|
|
sparse
|
2019-07-14 23:09:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-10-04 18:58:28 +01:00
|
|
|
pytestCheckHook
|
|
|
|
ipython
|
2019-07-14 23:09:01 +01:00
|
|
|
];
|
|
|
|
|
2020-10-04 18:58:28 +01:00
|
|
|
# avoid collecting local files
|
|
|
|
preCheck = ''
|
|
|
|
cd clifford/test
|
2019-07-14 23:09:01 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-05 23:33:39 +00:00
|
|
|
disabledTests = [
|
|
|
|
"veryslow"
|
|
|
|
"test_algebra_initialisation"
|
|
|
|
"test_cga"
|
|
|
|
"test_estimate_rotor_sequential[random_sphere]"
|
2020-10-04 18:58:28 +01:00
|
|
|
];
|
|
|
|
|
2019-07-14 23:09:01 +01:00
|
|
|
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 ];
|
2021-03-08 01:08:16 +00:00
|
|
|
# many TypeError's in tests
|
|
|
|
broken = true;
|
2019-07-14 23:09:01 +01:00
|
|
|
};
|
|
|
|
}
|