1{
2 lib,
3 bitlist,
4 buildPythonPackage,
5 fe25519,
6 fetchPypi,
7 fountains,
8 parts,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 wheel,
13}:
14
15buildPythonPackage rec {
16 pname = "ge25519";
17 version = "1.5.1";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-VKDPiSdufWwrNcZSRTByFU4YGoJrm48TDm1nt4VyclA=";
25 };
26
27 nativeBuildInputs = [
28 setuptools
29 wheel
30 ];
31
32 propagatedBuildInputs = [
33 fe25519
34 parts
35 bitlist
36 fountains
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 postPatch = ''
42 substituteInPlace pyproject.toml \
43 --replace "--doctest-modules --ignore=docs --cov=ge25519 --cov-report term-missing" ""
44 '';
45
46 pythonImportsCheck = [ "ge25519" ];
47
48 meta = with lib; {
49 description = "Python implementation of Ed25519 group elements and operations";
50 homepage = "https://github.com/nthparty/ge25519";
51 license = with licenses; [ mit ];
52 maintainers = with maintainers; [ fab ];
53 };
54}