autotrash: refactor (#436002)

This commit is contained in:
Fabian Affolter
2025-08-23 09:29:49 +02:00
committed by GitHub
+9 -1
View File
@@ -5,6 +5,7 @@
pandoc,
installShellFiles,
}:
python3Packages.buildPythonPackage rec {
pname = "autotrash";
version = "0.4.7";
@@ -17,22 +18,29 @@ python3Packages.buildPythonPackage rec {
hash = "sha256-qMU3jjBL5+fd9vKX5BIqES5AM8D/54aBOmdHFiBtfEo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
build-system = [ python3Packages.poetry-core ];
nativeBuildInputs = [
installShellFiles
pandoc
];
postBuild = "make -C doc autotrash.1";
postInstall = "installManPage doc/autotrash.1";
pythonImportsCheck = [ "autotrash" ];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
meta = {
description = "Tool to automatically purge old trashed files";
license = lib.licenses.gpl3Plus;
homepage = "https://bneijt.nl/pr/autotrash";
changelog = "https://github.com/bneijt/autotrash/releases/tag/${src.tag}";
maintainers = with lib.maintainers; [
sigmanificient
mithicspirit