otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / clifford / default.nix
blob3b6e68710b4b09f058b2213b9b22850b956dc30c
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   h5py,
7   ipython,
8   numba,
9   numpy,
10   pytestCheckHook,
11   setuptools,
12   scipy,
13   sparse,
16 buildPythonPackage rec {
17   pname = "clifford";
18   version = "1.4.0";
19   pyproject = true;
21   disabled = pythonOlder "3.5";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
26   };
28   build-system = [ setuptools ];
30   dependencies = [
31     h5py
32     numba
33     numpy
34     scipy
35     sparse
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     ipython
41   ];
43   # avoid collecting local files
44   preCheck = ''
45     cd clifford/test
46   '';
48   disabledTests = [
49     "veryslow"
50     "test_algebra_initialisation"
51     "test_cga"
52     "test_grade_projection"
53     "test_multiple_grade_projection"
54     "test_inverse"
55     "test_inv_g4"
56   ];
58   disabledTestPaths = [
59     # Disable failing tests
60     "test_g3c_tools.py"
61     "test_multivector_inverse.py"
62   ];
64   pythonImportsCheck = [ "clifford" ];
66   meta = with lib; {
67     description = "Numerical Geometric Algebra Module";
68     homepage = "https://clifford.readthedocs.io";
69     changelog = "https://github.com/pygae/clifford/releases/tag/v${version}";
70     license = licenses.bsd3;
71     maintainers = [ ];
72     # Broken with numba >= 0.54
73     # see https://github.com/pygae/clifford/issues/430
74     broken = versionAtLeast numba.version "0.58";
75   };