13 buildPythonPackage rec {
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
23 hash = "sha256-DKe+bI1GEzXg4Y4n5OA1/hWYz9L3X1AvaOFPEnCaAfs=";
30 propagatedBuildInputs = [
40 disabledTests = lib.optionals (pythonAtLeast "3.12") [
41 # https://github.com/ethereum/py_ecc/issues/133
43 "test_pairing_bilinearity_on_G1"
44 "test_pairing_bilinearity_on_G2"
45 "test_pairing_composit_check"
46 "test_pairing_is_non_degenerate"
47 "test_pairing_negative_G1"
48 "test_pairing_negative_G2"
49 "test_pairing_output_order"
52 pythonImportsCheck = [ "py_ecc" ];
55 changelog = "https://github.com/ethereum/py_ecc/blob/${src.rev}/CHANGELOG.rst";
56 description = "ECC pairing and bn_128 and bls12_381 curve operations";
57 homepage = "https://github.com/ethereum/py_ecc";
58 license = licenses.mit;
59 maintainers = with maintainers; [ ];