2020-11-24 20:58:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "trash-cli";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "0.20.11.23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andreafrancia";
|
|
|
|
repo = "trash-cli";
|
|
|
|
rev = version;
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "1fjkmpnbpzxniypql68cpwc2rrnih8b34p8pzabrf55f49wcmcph";
|
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; [
|
|
|
|
nose
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
checkPhase = "nosetests";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|