Files
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

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
isPyPy,
# dependencies
eth-hash,
eth-typing,
cytoolz,
toolz,
pydantic,
# nativeCheckInputs
hypothesis,
mypy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eth-utils";
version = "5.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-utils";
tag = "v${version}";
hash = "sha256-uyUsX9jX2KumrERrIc6nXloH0G+rQeKzFMwex+Mh3eM=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
eth-hash
eth-typing
]
++ lib.optional (!isPyPy) cytoolz
++ lib.optional isPyPy toolz;
nativeCheckInputs = [
hypothesis
mypy
pytestCheckHook
pydantic
]
++ eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_utils" ];
disabledTests = [ "test_install_local_wheel" ];
meta = with lib; {
changelog = "https://github.com/ethereum/eth-utils/blob/${src.rev}/docs/release_notes.rst";
description = "Common utility functions for codebases which interact with ethereum";
homepage = "https://github.com/ethereum/eth-utils";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}