Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ 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.0"; pyproject = true;
src = fetchFromGitHub { owner = "ethereum"; repo = "eth-utils"; tag = "v${version}"; hash = "sha256-VWNQyLfOEQTusdNHO/8/fWyGVFVwr1Cg1IfyNMSsfGQ="; };
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 ]; };}