1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 eth-keys,
7 eth-utils,
8 pycryptodome,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "eth-keyfile";
15 version = "0.8.0";
16 pyproject = true;
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "ethereum";
21 repo = "eth-keyfile";
22 rev = "v${version}";
23 fetchSubmodules = true;
24 hash = "sha256-797yhHuU9/lm96YKxl3SZ5IQAwDxDSYkLkiBdAHh0Uk=";
25 };
26
27 build-system = [ setuptools ];
28
29 propagatedBuildInputs = [
30 eth-keys
31 eth-utils
32 pycryptodome
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "eth_keyfile" ];
38
39 meta = with lib; {
40 description = "Tools for handling the encrypted keyfile format used to store private keys";
41 homepage = "https://github.com/ethereum/eth-keyfile";
42 license = licenses.mit;
43 maintainers = with maintainers; [ ];
44 };
45}