2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
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 ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-06-05 15:53:02 +00:00
|
|
|
description = "Tool to automatically purge old trashed files";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://bneijt.nl/pr/autotrash";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "autotrash";
|
|
|
|
};
|
|
|
|
}
|