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