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,
|
2024-04-11 06:47:10 +00:00
|
|
|
setuptools,
|
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";
|
2024-04-11 06:47:10 +00:00
|
|
|
pyproject = true;
|
2021-10-07 07:05:42 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2019-07-14 22:09:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
|
2019-07-14 22:09:01 +00:00
|
|
|
};
|
2021-01-05 23:33:39 +00:00
|
|
|
|
2024-04-11 06:47:10 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
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";
|
2024-04-11 06:45:32 +00:00
|
|
|
changelog = "https://github.com/pygae/clifford/releases/tag/v${version}";
|
2019-07-14 22:09:01 +00:00
|
|
|
license = licenses.bsd3;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2024-04-11 07:05:09 +00:00
|
|
|
# Broken with numba >= 0.54
|
|
|
|
# see https://github.com/pygae/clifford/issues/430
|
|
|
|
broken = versionAtLeast numba.version "0.58";
|
2019-07-14 22:09:01 +00:00
|
|
|
};
|
|
|
|
}
|