nixpkgs/pkgs/development/python-modules/clifford/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2019-07-14 22:09:01 +00:00
{
lib,
buildPythonPackage,
fetchPypi,
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,
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";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.5";
2019-07-14 22:09:01 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
2019-07-14 22:09:01 +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
];
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
'';
disabledTests = [
"veryslow"
"test_algebra_initialisation"
"test_cga"
"test_grade_projection"
"test_multiple_grade_projection"
"test_inverse"
"test_inv_g4"
2020-10-04 17:58:28 +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";
homepage = "https://clifford.readthedocs.io";
changelog = "https://github.com/pygae/clifford/releases/tag/v${version}";
2019-07-14 22:09:01 +00:00
license = licenses.bsd3;
maintainers = [ ];
# 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
};
}