Files
nixpkgs/pkgs/development/python-modules/hexdump/default.nix
Marcin Serwin 990286f941 maintainers: drop frogamic
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-06-04 14:13:11 +02:00

40 lines
810 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
}:
buildPythonPackage rec {
pname = "hexdump";
version = "3.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-14GkOwwWrOP5Nmqt5z6K06e9UTfVjwtFqy0/VIdvINs=";
extension = "zip";
};
# the source zip has no prefix, so everything gets unpacked to /build otherwise
unpackPhase = ''
runHook preUnpack
mkdir source
pushd source
unzip $src
popd
runHook postUnpack
'';
sourceRoot = "source";
pythonImportsCheck = [ "hexdump" ];
meta = {
description = "Library to dump binary data to hex format and restore from there";
homepage = "https://pypi.org/project/hexdump/"; # BitBucket site returns 404
license = lib.licenses.publicDomain;
maintainers = [
];
};
}