1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 eth-utils,
7 hypothesis,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "hexbytes";
14 version = "1.2.0";
15 pyproject = true;
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "ethereum";
20 repo = "hexbytes";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-8st1nQiGApt+aNl8/cftYk0ZzA+MxbLyGi53UWUlAjM=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [
28 eth-utils
29 hypothesis
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "hexbytes" ];
34
35 meta = with lib; {
36 description = "`bytes` subclass that decodes hex, with a readable console output";
37 homepage = "https://github.com/ethereum/hexbytes";
38 changelog = "https://github.com/ethereum/hexbytes/blob/v${version}/docs/release_notes.rst";
39 license = licenses.mit;
40 maintainers = [ ];
41 };
42}