2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Send2Trash";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.8.1b0";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hsoft";
|
|
|
|
repo = "send2trash";
|
|
|
|
rev = version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "sha256-kDUEfyMTk8CXSxTEi7E6kl09ohnWHeaoif+EIaIJh9Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkPhase = "HOME=$TMPDIR pytest";
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Send file to trash natively under macOS, Windows and Linux";
|
|
|
|
homepage = "https://github.com/hsoft/send2trash";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|