1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, urwid 6}: 7 8buildPythonPackage rec { 9 pname = "hachoir"; 10 version = "3.1.2"; 11 12 src = fetchFromGitHub { 13 owner = "vstinner"; 14 repo = pname; 15 rev = version; 16 sha256 = "06544qmmimvaznwcjs8wwfih1frdd7anwcw5z07cf69l8p146p0y"; 17 }; 18 19 propagatedBuildInputs = [ 20 urwid 21 ]; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "hachoir" ]; 28 29 meta = with lib; { 30 description = "Python library to view and edit a binary stream"; 31 homepage = "https://hachoir.readthedocs.io/"; 32 license = with licenses; [ gpl2Only ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}