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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
# dependencies
eth-typing,
eth-utils,
# nativeCheckInputs
asn1tools,
factory-boy,
hypothesis,
pyasn1,
pytestCheckHook,
coincurve,
eth-hash,
isPyPy,
pydantic,
}:
buildPythonPackage rec {
pname = "eth-keys";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-keys";
tag = "v${version}";
hash = "sha256-H/s/D4f4tqP/WTil9uLmFw2Do9sEjMWwEreQEooeszQ=";
};
build-system = [ setuptools ];
dependencies = [
eth-typing
eth-utils
];
nativeCheckInputs = [
asn1tools
factory-boy
hypothesis
pyasn1
pytestCheckHook
pydantic
]
++ optional-dependencies.coincurve
++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3
++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_keys" ];
disabledTests = [ "test_install_local_wheel" ];
optional-dependencies = {
coincurve = [ coincurve ];
};
meta = {
description = "Common API for Ethereum key operations";
homepage = "https://github.com/ethereum/eth-keys";
changelog = "https://github.com/ethereum/eth-keys/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hellwolf ];
};
}
|