From beeffa2453ecf81a0c76cd9daed6bad4e7198d83 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 26 Jul 2022 18:05:14 +0200 Subject: [PATCH] python3Packages.hexdump: init at 3.3 --- .../python-modules/hexdump/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/hexdump/default.nix diff --git a/pkgs/development/python-modules/hexdump/default.nix b/pkgs/development/python-modules/hexdump/default.nix new file mode 100644 index 000000000000..75da23e9859b --- /dev/null +++ b/pkgs/development/python-modules/hexdump/default.nix @@ -0,0 +1,32 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "hexdump"; + version = "3.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7efc91541c7d..8c0f9fcb5954 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4089,6 +4089,8 @@ in { hexbytes = callPackage ../development/python-modules/hexbytes { }; + hexdump = callPackage ../development/python-modules/hexdump { }; + hg-commitsigs = callPackage ../development/python-modules/hg-commitsigs { }; hg-evolve = callPackage ../development/python-modules/hg-evolve { };