Files
nixpkgs/pkgs/development/python-modules/eth-keys/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
# dependencies
eth-typing,
eth-utils,
# nativeCheckInputs
asn1tools,
factory-boy,
hypothesis,
pyasn1,
pytestCheckHook,
coincurve,
eth-hash,
isPyPy,
pydantic,
}:
buildPythonPackage rec {
pname = "eth-keys";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-keys";
tag = "v${version}";
hash = "sha256-H/s/D4f4tqP/WTil9uLmFw2Do9sEjMWwEreQEooeszQ=";
};
build-system = [ setuptools ];
dependencies = [
eth-typing
eth-utils
];
nativeCheckInputs = [
asn1tools
factory-boy
hypothesis
pyasn1
pytestCheckHook
pydantic
]
++ optional-dependencies.coincurve
++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3
++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_keys" ];
disabledTests = [ "test_install_local_wheel" ];
optional-dependencies = {
coincurve = [ coincurve ];
};
meta = {
description = "Common API for Ethereum key operations";
homepage = "https://github.com/ethereum/eth-keys";
changelog = "https://github.com/ethereum/eth-keys/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hellwolf ];
};
}