mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
python310Packages.eth-keys: init at 0.4.0
This commit is contained in:
parent
98f3569f4f
commit
ded901634f
56
pkgs/development/python-modules/eth-keys/default.nix
Normal file
56
pkgs/development/python-modules/eth-keys/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, asn1tools
|
||||
, coincurve
|
||||
, eth-hash
|
||||
, eth-typing
|
||||
, eth-utils
|
||||
, factory_boy
|
||||
, hypothesis
|
||||
, isPyPy
|
||||
, pyasn1
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eth-keys";
|
||||
version = "0.4.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = "eth-keys";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-jG/jJPM4t3z6UQIdc8L6y0DxZiGx5pVuGL8XwbIt60o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
eth-typing
|
||||
eth-utils
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asn1tools
|
||||
factory_boy
|
||||
hypothesis
|
||||
pyasn1
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.coincurve
|
||||
++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3
|
||||
++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
|
||||
|
||||
pythonImportsCheck = [ "eth_keys" ];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
coincurve = [ coincurve ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Common API for Ethereum key operations";
|
||||
homepage = "https://github.com/ethereum/eth-keys";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
@ -2811,6 +2811,8 @@ in {
|
||||
|
||||
eth-keyfile = callPackage ../development/python-modules/eth-keyfile { };
|
||||
|
||||
eth-keys = callPackage ../development/python-modules/eth-keys { };
|
||||
|
||||
eth-typing = callPackage ../development/python-modules/eth-typing { };
|
||||
|
||||
eth-utils = callPackage ../development/python-modules/eth-utils { };
|
||||
|
Loading…
Reference in New Issue
Block a user