nixpkgs/pkgs/development/python-modules/hexdump/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

33 lines
814 B
Nix

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