depot/third_party/nixpkgs/pkgs/development/python-modules/eth-keyfile/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

47 lines
958 B
Nix

{ 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 ];
};
}