1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "python-axolotl-curve25519";
11 version = "0.4.1.post2";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0705a66297ebd2f508a60dc94e22881c754301eb81db93963322f6b3bdcb63a3";
17 };
18
19 patches = [
20 # https://github.com/tgalal/python-axolotl-curve25519/pull/26
21 (fetchpatch {
22 url = "https://github.com/tgalal/python-axolotl-curve25519/commit/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch";
23 hash = "sha256-hdhaOysRXI9q5D9e/bfy0887bpEFSvUyrbl32nBgteQ=";
24 })
25 ];
26
27 build-system = [ setuptools ];
28
29 meta = {
30 homepage = "https://github.com/tgalal/python-axolotl-curve25519";
31 description = "Curve25519 with ed25519 signatures";
32 maintainers = [ ];
33 license = lib.licenses.gpl3;
34 };
35}