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.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "ethereum"; 17 repo = "hexbytes"; 18 rev = "v${version}"; 19 sha256 = "sha256-EDFE5MUc+XMwe8BaXkz/DRchAZbS86X+AcShi5rx83M="; 20 }; 21 22 checkInputs = [ 23 eth-utils 24 hypothesis 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ "hexbytes" ]; 29 30 meta = with lib; { 31 description = "`bytes` subclass that decodes hex, with a readable console output"; 32 homepage = "https://github.com/ethereum/hexbytes"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ SuperSandro2000 ]; 35 }; 36}