Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 42 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, buildPythonPackage, fetchFromGitHub, pillow, xlib, six, xvfb-run, sphinx, gobject-introspection, pygobject3, gtk3, libayatana-appindicator }:
buildPythonPackage rec { pname = "pystray"; version = "0.19.2";
src = fetchFromGitHub { owner = "moses-palmer"; repo = "pystray"; rev = "v${version}"; hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs="; };
nativeBuildInputs = [ gobject-introspection sphinx ]; propagatedBuildInputs = [ pillow xlib six pygobject3 gtk3 libayatana-appindicator ]; nativeCheckInputs = [ 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 = with licenses; [ gpl3Plus lgpl3Plus ]; platforms = platforms.linux; maintainers = with maintainers; [ jojosch ]; };}