depot/third_party/nixpkgs/pkgs/development/python-modules/hexbytes/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

36 lines
753 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}";
sha256 = "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 ];
};
}