depot/third_party/nixpkgs/pkgs/development/python-modules/hexbytes/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
918 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
eth-utils,
hypothesis,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hexbytes";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ethereum";
repo = "hexbytes";
rev = "refs/tags/v${version}";
hash = "sha256-8st1nQiGApt+aNl8/cftYk0ZzA+MxbLyGi53UWUlAjM=";
};
build-system = [ setuptools ];
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";
changelog = "https://github.com/ethereum/hexbytes/blob/v${version}/docs/release_notes.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}