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