5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
45 lines
900 B
Nix
45 lines
900 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
eth-keys,
|
|
eth-utils,
|
|
pycryptodome,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eth-keyfile";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum";
|
|
repo = "eth-keyfile";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-797yhHuU9/lm96YKxl3SZ5IQAwDxDSYkLkiBdAHh0Uk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
eth-keys
|
|
eth-utils
|
|
pycryptodome
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "eth_keyfile" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools for handling the encrypted keyfile format used to store private keys";
|
|
homepage = "https://github.com/ethereum/eth-keyfile";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|