depot/third_party/nixpkgs/pkgs/development/python-modules/galois/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, setuptools-scm
, pythonOlder
, pythonRelaxDepsHook
, fetchFromGitHub
, pytestCheckHook
, pytest-xdist
, numpy
, numba
, typing-extensions
}:
buildPythonPackage rec {
pname = "galois";
version = "0.3.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mhostetter";
repo = "galois";
rev = "refs/tags/v${version}";
hash = "sha256-nlNy4+GwStyuCD8f47w07NhNmepxBRtu6PXiL31vzwA=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
pythonRelaxDepsHook
];
propagatedBuildInputs = [
numpy
numba
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
pythonRelaxDeps = [ "numpy" "numba" ];
pythonImportsCheck = [ "galois" ];
meta = with lib; {
description = "Python package that extends NumPy arrays to operate over finite fields";
homepage = "https://github.com/mhostetter/galois";
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ chrispattison ];
};
}