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

30 lines
723 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python3Packages }:
2017-03-03 01:44:17 +00:00
python3Packages.buildPythonApplication rec {
2020-03-29 11:34:50 +01:00
pname = "trash-cli";
2021-01-02 22:07:56 +00:00
version = "0.20.12.26";
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-09 00:38:31 +01:00
rev = version;
2021-01-02 22:07:56 +00:00
sha256 = "15iivl9xln1bw1zr2x5zvqyb6aj7mc8hfqi6dniq6xkp5m046ib7";
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; [
nose
mock
];
2014-12-23 07:35:26 +00:00
checkPhase = "nosetests";
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 11:26:52 +01:00
platforms = platforms.unix;
2014-12-23 07:35:26 +00:00
license = licenses.gpl2;
};
}