Files
nixpkgs/pkgs/development/python-modules/galois/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 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.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mhostetter";
repo = "galois";
tag = "v${version}";
hash = "sha256-YVAmjmkAhU518x+eCCgA6RY99XPQ5s+xvonkaoc5t8A=";
};
pythonRelaxDeps = [
"numpy"
"numba"
];
build-system = [ setuptools-scm ];
dependencies = [
numpy
numba
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
pythonImportsCheck = [ "galois" ];
meta = {
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/${src.tag}";
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chrispattison ];
};
}