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