Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
pandoc,
|
|
installShellFiles,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "autotrash";
|
|
version = "0.4.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bneijt";
|
|
repo = "autotrash";
|
|
tag = version;
|
|
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
|
|
];
|
|
mainProgram = "autotrash";
|
|
};
|
|
}
|