17 buildPythonPackage rec {
20 disabled = pythonOlder "3.6";
22 src = fetchFromGitHub {
26 hash = "sha256-jG/jJPM4t3z6UQIdc8L6y0DxZiGx5pVuGL8XwbIt60o=";
29 propagatedBuildInputs = [
40 ] ++ passthru.optional-dependencies.coincurve
41 ++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3
42 ++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome;
46 "test_compress_decompress_inversion"
47 "test_public_key_generation_is_equal"
48 "test_signing_is_equal"
49 "test_native_to_coincurve_recover"
50 "test_public_key_compression_is_equal"
51 "test_public_key_decompression_is_equal"
52 "test_signatures_with_high_s"
54 "test_encode_decode_pairings"
57 pythonImportsCheck = [ "eth_keys" ];
59 passthru.optional-dependencies = {
60 coincurve = [ coincurve ];
64 description = "Common API for Ethereum key operations";
65 homepage = "https://github.com/ethereum/eth-keys";
66 license = licenses.mit;
67 maintainers = with maintainers; [ ];