From d6ece75b2f094288254af4ac179491b5e14951df Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 1 Jun 2024 09:35:27 +0200 Subject: [PATCH] autotrash: init at 0.4.7 --- .../python-modules/autotrash/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/autotrash/default.nix diff --git a/pkgs/development/python-modules/autotrash/default.nix b/pkgs/development/python-modules/autotrash/default.nix new file mode 100644 index 000000000000..1d0e28405c93 --- /dev/null +++ b/pkgs/development/python-modules/autotrash/default.nix @@ -0,0 +1,33 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "autotrash"; + version = "0.4.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bneijt"; + repo = "autotrash"; + rev = "refs/tags/${version}"; + hash = "sha256-qMU3jjBL5+fd9vKX5BIqES5AM8D/54aBOmdHFiBtfEo="; + }; + + build-system = [ poetry-core ]; + + pythonImportsCheck = [ "autotrash" ]; + nativeCheckInputs = [ pytestCheckHook ]; + + meta = with lib; { + description = "Tool to automatically purge old trashed files"; + license = licenses.gpl3Plus; + homepage = "https://bneijt.nl/pr/autotrash"; + maintainers = with maintainers; [ sigmanificient ]; + mainProgram = "autotrash"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index abd5218c0c7a..f942104ba1ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1007,6 +1007,8 @@ self: super: with self; { autoslot = callPackage ../development/python-modules/autoslot { }; + autotrash = callPackage ../development/python-modules/autotrash { }; + avahi = toPythonModule (pkgs.avahi.override { inherit python; withPython = true;