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

36 lines
874 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages }:
2017-03-03 01:44:17 +00:00
python3Packages.buildPythonApplication rec {
2020-03-29 10:34:50 +00:00
pname = "trash-cli";
2021-04-29 19:58:42 +00:00
version = "0.21.4.18";
2014-12-23 07:35:26 +00:00
2017-03-03 01:44:17 +00:00
src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
2019-09-08 23:38:31 +00:00
rev = version;
2021-04-29 19:58:42 +00:00
sha256 = "16xmg2d9rfmm5l1dxj3dydijpv3kwswrqsbj1sihyyka4s915g61";
2014-12-23 07:35:26 +00:00
};
2020-11-23 21:03:13 +00:00
propagatedBuildInputs = [ python3Packages.psutil ];
2014-12-23 07:35:26 +00:00
checkInputs = with python3Packages; [
mock
2021-04-29 19:58:42 +00:00
pytest
];
2021-04-29 19:58:42 +00:00
# Run tests, skipping `test_user_specified` since its result depends on the
# mount path.
checkPhase = ''
pytest -k 'not test_user_specified'
'';
2014-12-23 07:35:26 +00:00
meta = with lib; {
homepage = "https://github.com/andreafrancia/trash-cli";
2014-12-23 07:35:26 +00:00
description = "Command line tool for the desktop trash can";
maintainers = [ maintainers.rycee ];
2018-06-11 10:26:52 +00:00
platforms = platforms.unix;
2014-12-23 07:35:26 +00:00
license = licenses.gpl2;
2021-04-27 17:46:48 +00:00
mainProgram = "trash";
2014-12-23 07:35:26 +00:00
};
}