Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / galois / default.nix
blobe6a12ba415df86e180e6d23d3a515651c142c595
1 { lib
2 , buildPythonPackage
3 , setuptools-scm
4 , pythonOlder
5 , pythonRelaxDepsHook
6 , fetchFromGitHub
7 , pytestCheckHook
8 , pytest-xdist
9 , numpy
10 , numba
11 , typing-extensions
14 buildPythonPackage rec {
15   pname = "galois";
16   version = "0.3.6";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "mhostetter";
23     repo = "galois";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-Lt55HUTBmrg0IX9oWUdh5zyxccViKq0X+9bhDEgUZjQ=";
26   };
28   SETUPTOOLS_SCM_PRETEND_VERSION = version;
30   nativeBuildInputs = [
31     setuptools-scm
32     pythonRelaxDepsHook
33   ];
35   propagatedBuildInputs = [
36     numpy
37     numba
38     typing-extensions
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43     pytest-xdist
44   ];
46   pythonRelaxDeps = [ "numpy" "numba" ];
48   pythonImportsCheck = [ "galois" ];
50   meta = with lib; {
51     description = "Python package that extends NumPy arrays to operate over finite fields";
52     homepage = "https://github.com/mhostetter/galois";
53     changelog = "https://github.com/mhostetter/galois/releases/tag/v${version}";
54     downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
55     license = licenses.mit;
56     maintainers = with maintainers; [ chrispattison ];
57   };