tutanota-desktop: 259.250108.1 -> 266.250202.0 (#377234)
[NixPkgs.git] / pkgs / development / python-modules / fpylll / default.nix
blob30c8db5b0ebc288e99d6dd6b5c54e25d7a846e15
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
6   # build-system
7   cysignals,
8   cython,
9   pkgconfig,
10   setuptools,
12   gmp,
13   pari,
14   mpfr,
15   fplll,
16   numpy,
18   # Reverse dependency
19   sage,
21   # tests
22   pytestCheckHook,
25 buildPythonPackage rec {
26   pname = "fpylll";
27   version = "0.6.3";
28   pyproject = true;
30   src = fetchFromGitHub {
31     owner = "fplll";
32     repo = "fpylll";
33     tag = version;
34     hash = "sha256-3+DXfCUuHQG+VSzJGEPa8qP6oxC+nngMa44XyFCJAVY=";
35   };
37   nativeBuildInputs = [
38     cython
39     cysignals
40     pkgconfig
41     setuptools
42   ];
44   buildInputs = [
45     gmp
46     pari
47     mpfr
48     fplll
49   ];
51   propagatedBuildInputs = [ numpy ];
53   nativeCheckInputs = [ pytestCheckHook ];
55   preCheck = ''
56     # Since upstream introduced --doctest-modules in
57     # https://github.com/fplll/fpylll/commit/9732fdb40cf1bd43ad1f60762ec0a8401743fc79,
58     # it is necessary to ignore import mismatches. Not sure why, but the files
59     # should be identical anyway.
60     export PY_IGNORE_IMPORTMISMATCH=1
61   '';
63   passthru.tests = {
64     inherit sage;
65   };
67   meta = with lib; {
68     description = "Python interface for fplll";
69     changelog = "https://github.com/fplll/fpylll/releases/tag/${src.tag}";
70     homepage = "https://github.com/fplll/fpylll";
71     maintainers = teams.sage.members;
72     license = licenses.gpl2Plus;
73   };