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