1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cached-property
5, eth-typing
6, eth-utils
7, mypy-extensions
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "py-ecc";
14 version = "6.0.0";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "ethereum";
19 repo = "py_ecc";
20 rev = "v${version}";
21 hash = "sha256-638otYA3e/Ld4mcM69yrqHQnGoK/Sfl/UA9FWnjgO/U=";
22 };
23
24 propagatedBuildInputs = [
25 cached-property
26 eth-typing
27 eth-utils
28 mypy-extensions
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "py_ecc" ];
36
37 meta = with lib; {
38 description = "ECC pairing and bn_128 and bls12_381 curve operations";
39 homepage = "https://github.com/ethereum/py_ecc";
40 license = licenses.mit;
41 maintainers = with maintainers; [ ];
42 };
43}