nixpkgs/pkgs/tools/misc/trash-cli/default.nix

30 lines
715 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages }:
2017-03-03 04:44:17 +03:00
python3Packages.buildPythonApplication rec {
2020-03-29 13:34:50 +03:00
pname = "trash-cli";
2021-01-03 01:07:56 +03:00
version = "0.20.12.26";
2014-12-23 10:35:26 +03:00
2017-03-03 04:44:17 +03:00
src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
2019-09-09 02:38:31 +03:00
rev = version;
2021-01-03 01:07:56 +03:00
sha256 = "15iivl9xln1bw1zr2x5zvqyb6aj7mc8hfqi6dniq6xkp5m046ib7";
2014-12-23 10:35:26 +03:00
};
2020-11-24 00:03:13 +03:00
propagatedBuildInputs = [ python3Packages.psutil ];
2014-12-23 10:35:26 +03:00
checkInputs = with python3Packages; [
nose
mock
];
2014-12-23 10:35:26 +03:00
checkPhase = "nosetests";
meta = with lib; {
homepage = "https://github.com/andreafrancia/trash-cli";
2014-12-23 10:35:26 +03:00
description = "Command line tool for the desktop trash can";
maintainers = [ maintainers.rycee ];
2018-06-11 13:26:52 +03:00
platforms = platforms.unix;
2014-12-23 10:35:26 +03:00
license = licenses.gpl2;
};
}