18 buildPythonPackage rec {
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
28 hash = "sha256-vyyaLCG2uIHXX0t93DmFq8/u0rZL+nsBsH2gfgjziyo=";
31 build-system = [ setuptools];
33 propagatedBuildInputs = [
44 ] ++ passthru.optional-dependencies.coincurve
45 ++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3
46 ++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
50 "test_compress_decompress_inversion"
51 "test_public_key_generation_is_equal"
52 "test_signing_is_equal"
53 "test_native_to_coincurve_recover"
54 "test_public_key_compression_is_equal"
55 "test_public_key_decompression_is_equal"
56 "test_signatures_with_high_s"
58 "test_encode_decode_pairings"
61 pythonImportsCheck = [ "eth_keys" ];
63 passthru.optional-dependencies = {
64 coincurve = [ coincurve ];
68 description = "Common API for Ethereum key operations";
69 homepage = "https://github.com/ethereum/eth-keys";
70 license = licenses.mit;
71 maintainers = with maintainers; [ ];