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