34 lines
739 B
Nix
34 lines
739 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
}
|