1{ lib, buildPythonPackage, fetchPypi }: 2 3buildPythonPackage rec { 4 pname = "hexdump"; 5 version = "3.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-14GkOwwWrOP5Nmqt5z6K06e9UTfVjwtFqy0/VIdvINs="; 10 extension = "zip"; 11 }; 12 13 # the source zip has no prefix, so everything gets unpacked to /build otherwise 14 unpackPhase = '' 15 runHook preUnpack 16 mkdir source 17 pushd source 18 unzip $src 19 popd 20 runHook postUnpack 21 ''; 22 23 sourceRoot = "source"; 24 25 pythonImportsCheck = [ "hexdump" ]; 26 27 meta = with lib; { 28 description = "Library to dump binary data to hex format and restore from there"; 29 homepage = "https://pypi.org/project/hexdump/"; # BitBucket site returns 404 30 license = licenses.publicDomain; 31 maintainers = with maintainers; [ frogamic sbruder ]; 32 }; 33}