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