1{
2 lib,
3 bitlist,
4 buildPythonPackage,
5 fetchPypi,
6 fountains,
7 parts,
8 pytest-cov-stub,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "fe25519";
16 version = "2.0.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-Kf5OCTG3IL2dYGvzFngoS+OMZPqq/O//8Gf0a2McgPc=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 bitlist
30 fountains
31 parts
32 ];
33
34 nativeCheckInputs = [
35 pytest-cov-stub
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "fe25519" ];
40
41 meta = with lib; {
42 description = "Python field operations for Curve25519's prime";
43 homepage = "https://github.com/BjoernMHaase/fe25519";
44 license = with licenses; [ cc0 ];
45 maintainers = with maintainers; [ fab ];
46 };
47}