2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-10-07 14:46:35 +00:00
|
|
|
, pythonOlder
|
2020-10-07 09:15:18 +00:00
|
|
|
, h5py
|
|
|
|
, ipython
|
|
|
|
, numba
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2020-10-07 09:15:18 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
2020-09-25 04:45:31 +00:00
|
|
|
, sparse
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clifford";
|
2021-10-07 14:46:35 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-07 14:46:35 +00:00
|
|
|
sha256 = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-10-07 09:15:18 +00:00
|
|
|
h5py
|
|
|
|
numba
|
2020-04-24 23:36:52 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
2020-09-25 04:45:31 +00:00
|
|
|
sparse
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-10-07 09:15:18 +00:00
|
|
|
pytestCheckHook
|
|
|
|
ipython
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
# avoid collecting local files
|
|
|
|
preCheck = ''
|
|
|
|
cd clifford/test
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
"veryslow"
|
|
|
|
"test_algebra_initialisation"
|
|
|
|
"test_cga"
|
2021-10-07 14:46:35 +00:00
|
|
|
"test_grade_projection"
|
|
|
|
"test_multiple_grade_projection"
|
|
|
|
"test_inverse"
|
|
|
|
"test_inv_g4"
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
|
|
|
|
2021-10-07 14:46:35 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable failing tests
|
|
|
|
"test_g3c_tools.py"
|
|
|
|
"test_multivector_inverse.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "clifford" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Numerical Geometric Algebra Module";
|
|
|
|
homepage = "https://clifford.readthedocs.io";
|
|
|
|
license = licenses.bsd3;
|
2021-10-07 14:46:35 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|