Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 814 B view raw
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 sourceRoot = "source"; 15 unpackPhase = '' 16 runHook preUnpack 17 mkdir source 18 pushd source 19 unzip $src 20 popd 21 runHook postUnpack 22 ''; 23 24 pythonImportsCheck = [ "hexdump" ]; 25 26 meta = with lib; { 27 description = "Library to dump binary data to hex format and restore from there"; 28 homepage = "https://pypi.org/project/hexdump/"; # BitBucket site returns 404 29 license = licenses.publicDomain; 30 maintainers = with maintainers; [ frogamic sbruder ]; 31 }; 32}