From 4c391ff1dfd9b61823b061fa37345b30ee4983d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 06:24:33 +0200 Subject: [PATCH] python310Packages.hexbytes: init at 0.2.2 --- .../python-modules/hexbytes/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/hexbytes/default.nix diff --git a/pkgs/development/python-modules/hexbytes/default.nix b/pkgs/development/python-modules/hexbytes/default.nix new file mode 100644 index 000000000000..79fc42ae3d02 --- /dev/null +++ b/pkgs/development/python-modules/hexbytes/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, eth-utils +, hypothesis +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "hexbytes"; + version = "0.2.2"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "ethereum"; + repo = "hexbytes"; + rev = "v${version}"; + sha256 = "sha256-SZscM6ze9yY+iRDx/5F4XbrLXIbp6QkFnzxN7zvP9CQ="; + }; + + checkInputs = [ + eth-utils + hypothesis + pytestCheckHook + ]; + + pythonImportsCheck = [ "hexbytes" ]; + + meta = with lib; { + description = "`bytes` subclass that decodes hex, with a readable console output"; + homepage = "https://github.com/ethereum/hexbytes"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 157521f3c3a1..5acd68ce33d2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3925,6 +3925,8 @@ in { heudiconv = callPackage ../development/python-modules/heudiconv { }; + hexbytes = callPackage ../development/python-modules/hexbytes { }; + hg-commitsigs = callPackage ../development/python-modules/hg-commitsigs { }; hg-evolve = callPackage ../development/python-modules/hg-evolve { };