3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/send2trash/default.nix
2018-04-05 19:43:44 +02:00

31 lines
648 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, configparser
, isPy3k
}:
buildPythonPackage rec {
pname = "Send2Trash";
version = "1.4.2";
src = fetchFromGitHub {
owner = "hsoft";
repo = "send2trash";
rev = version;
sha256 = "1w502i5h8xaqf03g6h95h4vs1wqfv6kg925dn63phrwmg1hfz2xx";
};
doCheck = !stdenv.isDarwin;
checkPhase = "HOME=. py.test";
checkInputs = [ pytest ] ++ lib.optional (!isPy3k) configparser;
meta = with lib; {
description = "Send file to trash natively under macOS, Windows and Linux";
homepage = https://github.com/hsoft/send2trash;
license = licenses.bsd3;
};
}