Unverified Commit 50d57f49 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #316350 from Sigmanificient/autotrash

parents 9e47c3a6 d6ece75b
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{
  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";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1007,6 +1007,8 @@ self: super: with self; {
  autoslot = callPackage ../development/python-modules/autoslot { };
  autotrash = callPackage ../development/python-modules/autotrash { };
  avahi = toPythonModule (pkgs.avahi.override {
    inherit python;
    withPython = true;