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