python.pkgs.send2trash: 1.3.0 -> 1.4.2
This commit is contained in:
27
pkgs/development/python-modules/send2trash/default.nix
Normal file
27
pkgs/development/python-modules/send2trash/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, configparser
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Send2Trash";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hsoft";
|
||||
repo = "send2trash";
|
||||
rev = version;
|
||||
sha256 = "1w502i5h8xaqf03g6h95h4vs1wqfv6kg925dn63phrwmg1hfz2xx";
|
||||
};
|
||||
|
||||
checkPhase = "HOME=. py.test";
|
||||
checkInputs = [ pytest configparser ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Send file to trash natively under macOS, Windows and Linux";
|
||||
homepage = https://github.com/hsoft/send2trash;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user