python310Packages.py-ecc: init at 6.0.0

This commit is contained in:
Sandro Jäckel 2022-06-04 03:21:28 +02:00
parent 2de83832fb
commit 07a12b703f
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cached-property
, eth-typing
, eth-utils
, mypy-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "py-ecc";
version = "6.0.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ethereum";
repo = "py_ecc";
rev = "v${version}";
sha256 = "sha256-638otYA3e/Ld4mcM69yrqHQnGoK/Sfl/UA9FWnjgO/U=";
};
propagatedBuildInputs = [
cached-property
eth-typing
eth-utils
mypy-extensions
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "py_ecc" ];
meta = with lib; {
description = "ECC pairing and bn_128 and bls12_381 curve operations";
homepage = "https://github.com/ethereum/py_ecc";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -5933,6 +5933,8 @@ in {
py-deprecate = callPackage ../development/python-modules/py-deprecate { };
py-ecc = callPackage ../development/python-modules/py-ecc { };
py-eth-sig-utils = callPackage ../development/python-modules/py-eth-sig-utils { };
nwdiag = callPackage ../development/python-modules/nwdiag { };