python310Packages.hexbytes: init at 0.2.2

This commit is contained in:
Sandro Jäckel 2022-06-04 06:24:33 +02:00
parent d515058727
commit 4c391ff1df
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 38 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };