8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
593 B
Nix
27 lines
593 B
Nix
{ 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 stdenv.lib; {
|
|
description = "Send file to trash natively under macOS, Windows and Linux";
|
|
homepage = "https://github.com/hsoft/send2trash";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|