depot/third_party/nixpkgs/pkgs/development/python-modules/eth-keyfile/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
971 B
Nix

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