depot/third_party/nixpkgs/pkgs/development/python-modules/send2trash/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

27 lines
591 B
Nix

{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, pytest
}:
buildPythonPackage rec {
pname = "Send2Trash";
version = "1.5.0";
src = fetchFromGitHub {
owner = "hsoft";
repo = "send2trash";
rev = version;
sha256 = "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v";
};
doCheck = !stdenv.isDarwin;
checkPhase = "HOME=$TMPDIR pytest";
checkInputs = [ pytest ];
meta = with lib; {
description = "Send file to trash natively under macOS, Windows and Linux";
homepage = "https://github.com/hsoft/send2trash";
license = licenses.bsd3;
};
}