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.

68 lines
1.1 KiB
Nix
Raw 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
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";
disabled = pythonOlder "3.5";
2019-07-14 22:09:01 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
2019-07-14 22:09:01 +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
];
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";
2019-07-14 22:09:01 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
2019-07-14 22:09:01 +00:00
};
}