Merge pull request #316350 from Sigmanificient/autotrash

This commit is contained in:
Sandro 2024-06-05 16:58:54 +02:00 committed by GitHub
commit 50d57f497f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 35 additions and 0 deletions

@ -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";
};
}

@ -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;