2019-07-14 22:09:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-10-07 07:05:42 +00:00
|
|
|
, pythonOlder
|
2020-10-04 17:58:28 +00:00
|
|
|
, h5py
|
|
|
|
, ipython
|
|
|
|
, numba
|
2019-07-14 22:09:01 +00:00
|
|
|
, numpy
|
2020-10-04 17:58:28 +00:00
|
|
|
, pytestCheckHook
|
2019-07-14 22:09:01 +00:00
|
|
|
, scipy
|
2020-08-29 18:53:51 +00:00
|
|
|
, sparse
|
2019-07-14 22:09:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clifford";
|
2021-10-07 07:05:42 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2019-07-14 22:09:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-07 07:05:42 +00:00
|
|
|
sha256 = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
|
2019-07-14 22:09:01 +00:00
|
|
|
};
|
2021-01-05 23:33:39 +00:00
|
|
|
|
2019-07-14 22:09:01 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-10-04 17:58:28 +00:00
|
|
|
h5py
|
|
|
|
numba
|
2019-07-14 22:09:01 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
2020-08-29 18:53:51 +00:00
|
|
|
sparse
|
2019-07-14 22:09:01 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-10-04 17:58:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
ipython
|
2019-07-14 22:09:01 +00:00
|
|
|
];
|
|
|
|
|
2020-10-04 17:58:28 +00:00
|
|
|
# avoid collecting local files
|
|
|
|
preCheck = ''
|
|
|
|
cd clifford/test
|
2019-07-14 22:09:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 23:33:39 +00:00
|
|
|
disabledTests = [
|
|
|
|
"veryslow"
|
|
|
|
"test_algebra_initialisation"
|
|
|
|
"test_cga"
|
2021-10-07 07:05:42 +00:00
|
|
|
"test_grade_projection"
|
|
|
|
"test_multiple_grade_projection"
|
|
|
|
"test_inverse"
|
|
|
|
"test_inv_g4"
|
2020-10-04 17:58:28 +00:00
|
|
|
];
|
|
|
|
|
2021-10-07 07:05:42 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable failing tests
|
|
|
|
"test_g3c_tools.py"
|
|
|
|
"test_multivector_inverse.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "clifford" ];
|
|
|
|
|
2019-07-14 22:09:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Numerical Geometric Algebra Module";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://clifford.readthedocs.io";
|
2019-07-14 22:09:01 +00:00
|
|
|
license = licenses.bsd3;
|
2021-10-07 07:05:42 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-14 22:09:01 +00:00
|
|
|
};
|
|
|
|
}
|