Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-ecc / default.nix
blobd7769ea4873d9f1a4652d919dbadd0a352224d5c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , cached-property
5 , eth-typing
6 , eth-utils
7 , pytestCheckHook
8 , pythonAtLeast
9 , pythonOlder
10 , setuptools
13 buildPythonPackage rec {
14   pname = "py-ecc";
15   version = "7.0.0";
16   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "ethereum";
21     repo = "py_ecc";
22     rev = "v${version}";
23     hash = "sha256-DKe+bI1GEzXg4Y4n5OA1/hWYz9L3X1AvaOFPEnCaAfs=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     cached-property
32     eth-typing
33     eth-utils
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   disabledTests = lib.optionals (pythonAtLeast "3.12") [
41     # https://github.com/ethereum/py_ecc/issues/133
42     "test_FQ2_object"
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"
50   ];
52   pythonImportsCheck = [ "py_ecc" ];
54   meta = with lib; {
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; [ ];
60   };