567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
861 B
Nix
42 lines
861 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 = with lib.maintainers; [
|
|
frogamic
|
|
sbruder
|
|
];
|
|
};
|
|
}
|