python310Packages.eth-keyfile: init at 0.6.0

This commit is contained in:
Sandro Jäckel 2022-06-04 04:03:50 +02:00
parent 8d1e34700b
commit 8c400570aa
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, eth-keys
, eth-utils
, pycryptodome
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "eth-keyfile";
version = "0.6.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-keyfile";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-JD4bRoD9L0JXcd+bTZrq/BkWw5QGzOi1RvoyLJC77kk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'setuptools-markdown'" ""
'';
propagatedBuildInputs = [
eth-keys
eth-utils
pycryptodome
];
checkInputs = [
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 = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -2809,6 +2809,8 @@ in {
eth-hash = callPackage ../development/python-modules/eth-hash { };
eth-keyfile = callPackage ../development/python-modules/eth-keyfile { };
eth-typing = callPackage ../development/python-modules/eth-typing { };
eth-utils = callPackage ../development/python-modules/eth-utils { };