From f5bedc25b2e35911dfe6abd55f581e485493cfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 03:03:52 +0200 Subject: [PATCH] python310Packages.py-eth-sig-utils: init at 0.4.0 --- .../py-eth-sig-utils/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/py-eth-sig-utils/default.nix diff --git a/pkgs/development/python-modules/py-eth-sig-utils/default.nix b/pkgs/development/python-modules/py-eth-sig-utils/default.nix new file mode 100644 index 000000000000..1dfc8904fe00 --- /dev/null +++ b/pkgs/development/python-modules/py-eth-sig-utils/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, eth-abi +, py-ecc +, pycryptodome +, python +, rlp +}: + +buildPythonPackage rec { + pname = "py-eth-sig-utils"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "rmeissner"; + repo = "py-eth-sig-utils"; + rev = "v${version}"; + sha256 = "sha256-PNvEHH5w2ptntRGzqWrqlbIzJJsT60OXg/Dh5f6Wq9k="; + }; + + propagatedBuildInputs = [ + eth-abi + py-ecc + pycryptodome + rlp + ]; + + checkPhase = '' + ${python.interpreter} -m unittest + ''; + + pythonImportsCheck = [ "py_eth_sig_utils" ]; + + meta = with lib; { + description = "Collection of functions to generate hashes for signing on Ethereum"; + homepage = "https://github.com/rmeissner/py-eth-sig-utils"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 924884839151..71c3b284e9ba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5931,6 +5931,8 @@ in { py-deprecate = callPackage ../development/python-modules/py-deprecate { }; + py-eth-sig-utils = callPackage ../development/python-modules/py-eth-sig-utils { }; + nwdiag = callPackage ../development/python-modules/nwdiag { }; oasatelematics = callPackage ../development/python-modules/oasatelematics { };