pythonPackages.pystray: init at 0.15.0

This commit is contained in:
Johannes Schleifenbaum 2020-03-06 08:35:32 +01:00 committed by Jon
parent fc51ceec8a
commit 004325edce
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub
, pillow, xlib, six, xvfb_run, sphinx }:
buildPythonPackage rec {
pname = "pystray";
version = "0.15.0";
src = fetchFromGitHub {
owner = "moses-palmer";
repo = "pystray";
rev = "v${version}";
sha256 = "0m5raxahyix3lmmbjbrsfd9yhr4vdil8gcy155hh6lqm2b1fmmss";
};
propagatedBuildInputs = [ pillow xlib six ];
nativeBuildInputs = [ sphinx ];
checkInputs = [ xvfb_run ];
checkPhase = ''
rm tests/icon_tests.py # test needs user input
xvfb-run -s '-screen 0 800x600x24' python setup.py test
'';
meta = with lib; {
homepage = "https://github.com/moses-palmer/pystray";
description = "This library allows you to create a system tray icon";
license = licenses.lgpl3;
maintainers = with maintainers; [ jojosch ];
};
}

View File

@ -1252,6 +1252,8 @@ in {
pystache = callPackage ../development/python-modules/pystache { };
pystray = callPackage ../development/python-modules/pystray { };
pytelegrambotapi = callPackage ../development/python-modules/pyTelegramBotAPI { };
pytesseract = callPackage ../development/python-modules/pytesseract { };