2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2018-06-07 13:17:20 -04:00
|
|
|
|
2017-03-02 19:44:17 -06:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-03-29 12:34:50 +02:00
|
|
|
pname = "trash-cli";
|
2021-05-15 19:23:02 +02:00
|
|
|
version = "0.21.5.11";
|
2014-12-23 08:35:26 +01:00
|
|
|
|
2017-03-02 19:44:17 -06:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "andreafrancia";
|
|
|
|
|
repo = "trash-cli";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2021-05-15 19:23:02 +02:00
|
|
|
sha256 = "0ifv717ywq2y0s6m9rkry1fnsr3mg9n2b2zcwaf9r5cxpw90bmym";
|
2014-12-23 08:35:26 +01:00
|
|
|
};
|
|
|
|
|
|
2020-11-23 22:03:13 +01:00
|
|
|
propagatedBuildInputs = [ python3Packages.psutil ];
|
2014-12-23 08:35:26 +01:00
|
|
|
|
2019-03-04 14:52:33 +01:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
|
mock
|
2021-05-15 19:23:02 +02:00
|
|
|
pytestCheckHook
|
2019-03-04 14:52:33 +01:00
|
|
|
];
|
2021-04-29 21:58:42 +02:00
|
|
|
|
2021-05-15 19:23:02 +02:00
|
|
|
# Skip `test_user_specified` since its result depends on the mount path.
|
|
|
|
|
disabledTests = [ "test_user_specified" ];
|
2014-12-23 08:35:26 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/andreafrancia/trash-cli";
|
2014-12-23 08:35:26 +01:00
|
|
|
description = "Command line tool for the desktop trash can";
|
2016-02-10 14:59:36 +01:00
|
|
|
maintainers = [ maintainers.rycee ];
|
2018-06-11 19:26:52 +09:00
|
|
|
platforms = platforms.unix;
|
2014-12-23 08:35:26 +01:00
|
|
|
license = licenses.gpl2;
|
2021-04-27 19:46:48 +02:00
|
|
|
mainProgram = "trash";
|
2014-12-23 08:35:26 +01:00
|
|
|
};
|
|
|
|
|
}
|