2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-xdist,
|
|
|
|
numpy,
|
|
|
|
numba,
|
|
|
|
typing-extensions,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "galois";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.3.8";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "pyproject";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mhostetter";
|
|
|
|
repo = "galois";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Nfr9gD2FLZ+KvHh1mcpReUWnzFr/NxpvperzZPoFeT4=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2023-04-12 12:48:02 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
numba
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"numpy"
|
|
|
|
"numba"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "galois" ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package that extends NumPy arrays to operate over finite fields";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/mhostetter/galois";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/mhostetter/galois/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chrispattison ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|