blob: a458a2fde5a032f292a95997412ed92cd6b840ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
setuptools-scm,
fetchFromGitHub,
pytestCheckHook,
pytest-xdist,
numpy,
numba,
typing-extensions,
}:
buildPythonPackage rec {
pname = "galois";
version = "0.4.7";
pyproject = true;
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 ];
};
}
|