28 lines
593 B
Nix
Raw Normal View History

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