1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 urwid, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "hachoir"; 12 version = "3.3.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "vstinner"; 19 repo = "hachoir"; 20 tag = version; 21 hash = "sha256-sTUJx8Xyhw4Z6juRtREw/okuVjSTSVWpSLKeZ7T8IR8="; 22 }; 23 24 propagatedBuildInputs = [ urwid ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "hachoir" ]; 29 30 meta = with lib; { 31 description = "Python library to view and edit a binary stream"; 32 homepage = "https://hachoir.readthedocs.io/"; 33 changelog = "https://github.com/vstinner/hachoir/blob/${version}/doc/changelog.rst"; 34 license = with licenses; [ gpl2Only ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}