83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
36 lines
751 B
Nix
36 lines
751 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, eth-utils
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hexbytes";
|
|
version = "0.3.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum";
|
|
repo = "hexbytes";
|
|
rev = "v${version}";
|
|
hash = "sha256-EDFE5MUc+XMwe8BaXkz/DRchAZbS86X+AcShi5rx83M=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|