2020-11-23 22:03:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2018-06-07 19:17:20 +02:00
|
|
|
|
2017-03-03 02:44:17 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-03-29 12:34:50 +02:00
|
|
|
pname = "trash-cli";
|
2020-11-23 22:03:13 +01:00
|
|
|
version = "0.20.11.23";
|
2014-12-23 08:35:26 +01:00
|
|
|
|
2017-03-03 02:44:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andreafrancia";
|
|
|
|
repo = "trash-cli";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-11-23 22:03:13 +01:00
|
|
|
sha256 = "1fjkmpnbpzxniypql68cpwc2rrnih8b34p8pzabrf55f49wcmcph";
|
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; [
|
|
|
|
nose
|
|
|
|
mock
|
|
|
|
];
|
2014-12-23 08:35:26 +01:00
|
|
|
checkPhase = "nosetests";
|
|
|
|
|
2018-06-07 19:17:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02: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 12:26:52 +02:00
|
|
|
platforms = platforms.unix;
|
2014-12-23 08:35:26 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|