depot/third_party/nixpkgs/pkgs/development/python-modules/autotrash/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

33 lines
737 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 = {
description = "Tool to automatically purge old trashed files";
license = lib.licenses.gpl3Plus;
homepage = "https://bneijt.nl/pr/autotrash";
maintainers = with lib.maintainers; [ sigmanificient ];
mainProgram = "autotrash";
};
}