Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, fetchFromGitHub, buildPythonPackage, setuptools, # dependencies eth-typing, eth-utils, # nativeCheckInputs asn1tools, factory-boy, hypothesis, pyasn1, pytestCheckHook, coincurve, eth-hash, isPyPy,}:
buildPythonPackage rec { pname = "eth-keys"; version = "0.6.0"; pyproject = true;
src = fetchFromGitHub { owner = "ethereum"; repo = "eth-keys"; tag = "v${version}"; hash = "sha256-HyOfuzwldtqjjowW7HGdZ8RNMXNK3y2NrXUoeMlWJjs="; };
build-system = [ setuptools ];
dependencies = [ eth-typing eth-utils ];
nativeCheckInputs = [ asn1tools factory-boy hypothesis pyasn1 pytestCheckHook ] ++ optional-dependencies.coincurve ++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3 ++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
pythonImportsCheck = [ "eth_keys" ];
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 ]; };}