depot/third_party/nixpkgs/pkgs/development/python-modules/galois/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
setuptools-scm,
pythonOlder,
fetchFromGitHub,
pytestCheckHook,
pytest-xdist,
numpy,
numba,
typing-extensions,
}:
buildPythonPackage rec {
pname = "galois";
version = "0.4.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mhostetter";
repo = "galois";
rev = "refs/tags/v${version}";
hash = "sha256-ZNVBP/c1Q7635PbySk5Yxz7riYNLnBnJLG6AMxy/ZeA=";
};
nativeBuildInputs = [
setuptools-scm
];
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";
changelog = "https://github.com/mhostetter/galois/releases/tag/v${version}";
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ chrispattison ];
};
}