2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "trash-cli";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "0.21.6.30";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andreafrancia";
|
|
|
|
repo = "trash-cli";
|
|
|
|
rev = version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "09vwg4jpx7pl7rd5ybq5ldgwky8zzf59msmzvmim9vipnmjgkxv7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
propagatedBuildInputs = [ python3Packages.psutil ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
mock
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# Skip `test_user_specified` since its result depends on the mount path.
|
|
|
|
disabledTests = [ "test_user_specified" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/andreafrancia/trash-cli";
|
|
|
|
description = "Command line tool for the desktop trash can";
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
2021-05-03 20:48:10 +00:00
|
|
|
mainProgram = "trash";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|