depot/third_party/nixpkgs/pkgs/tools/misc/trash-cli/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

32 lines
845 B
Nix

{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "trash-cli";
version = "0.21.5.22";
src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
rev = version;
sha256 = "0c1q13fyh9gi9gbxc55n772xlgjjr1ysnlxl41vifdcd4q8fhil8";
};
propagatedBuildInputs = [ python3Packages.psutil ];
checkInputs = with python3Packages; [
mock
pytestCheckHook
];
# Skip `test_user_specified` since its result depends on the mount path.
disabledTests = [ "test_user_specified" ];
meta = with 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;
mainProgram = "trash";
};
}