From df76aa7551389253206daa7d301f5ce6b9a2a5bd Mon Sep 17 00:00:00 2001 From: Maksym Balatsko Date: Sat, 16 Sep 2023 08:59:27 -0700 Subject: [PATCH] python3Packages.checksumdir: init at 1.2.0 --- .../python-modules/checksumdir/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/checksumdir/default.nix diff --git a/pkgs/development/python-modules/checksumdir/default.nix b/pkgs/development/python-modules/checksumdir/default.nix new file mode 100644 index 000000000000..7492d168d8d9 --- /dev/null +++ b/pkgs/development/python-modules/checksumdir/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +}: + +buildPythonPackage rec { + pname = "checksumdir"; + version = "1.2.0"; + pyproject = true; + + disable = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "to-mc"; + repo = "checksumdir"; + rev = version; + hash = "sha256-PO8sRGFQ1Dt/UYJuFH6Y3EaQVaS+4DJlOQtvF8ZmBWQ="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + doCheck = false; # Package does not contain tests + pythonImportsCheck = [ "checksumdir" ]; + + meta = with lib; { + description = "Simple package to compute a single deterministic hash of the file contents of a directory"; + homepage = "https://github.com/to-mc/checksumdir"; + license = licenses.mit; + maintainers = with maintainers; [ mbalatsko ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4cf1f0a21474..b8f4fc39f749 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1911,6 +1911,8 @@ self: super: with self; { checkdmarc = callPackage ../development/python-modules/checkdmarc { }; + checksumdir = callPackage ../development/python-modules/checksumdir { }; + cheetah3 = callPackage ../development/python-modules/cheetah3 { }; cheroot = callPackage ../development/python-modules/cheroot { };