2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-01-16 21:27:59 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Send2Trash";
|
2019-08-01 19:28:13 +00:00
|
|
|
version = "1.5.0";
|
2018-01-16 21:27:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hsoft";
|
|
|
|
repo = "send2trash";
|
|
|
|
rev = version;
|
2019-12-11 23:18:18 +00:00
|
|
|
sha256 = "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v";
|
2018-01-16 21:27:59 +00:00
|
|
|
};
|
|
|
|
|
2018-02-23 15:50:35 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-08-01 19:28:13 +00:00
|
|
|
checkPhase = "HOME=$TMPDIR pytest";
|
|
|
|
checkInputs = [ pytest ];
|
2018-01-16 21:27:59 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-16 21:27:59 +00:00
|
|
|
description = "Send file to trash natively under macOS, Windows and Linux";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hsoft/send2trash";
|
2018-01-16 21:27:59 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|