8 , gobject-introspection
21 python3Packages.buildPythonApplication rec {
26 url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz";
27 sha256 = "sha256-Fd3IOCEeXGV8zGd/8SzrWRsSsZRVePnsDaX8WrBrCOQ=";
30 nativeBuildInputs = with python3Packages; [
41 gnome.adwaita-icon-theme
51 propagatedBuildInputs = with python3Packages; [
65 checkInputs = with python3Packages; [
74 ./0001-Adjust-get_data_path-for-NixOS.patch
75 ./fix-extensions.patch
79 substituteInPlace setup.py --subst-var out
80 patchShebangs bin/ulauncher-toggle
81 substituteInPlace bin/ulauncher-toggle \
82 --replace wmctrl ${wmctrl}/bin/wmctrl
85 # https://github.com/Ulauncher/Ulauncher/issues/390
89 export PYTHONPATH=$PYTHONPATH:$out/${python3Packages.python.sitePackages}
92 # Simple translation of
93 # - https://github.com/Ulauncher/Ulauncher/blob/f5a601bdca75198a6a31b9d84433496b63530e74/test
97 # skip tests in invocation that handle paths that
98 # aren't nix friendly (i think)
99 xvfb-run -s '-screen 0 1024x768x16' \
100 pytest -k 'not TestPath and not test_handle_key_press_event' tests
106 dontWrapGApps = true;
109 "''${gappsWrapperArgs[@]}"
110 --prefix PATH : "${lib.makeBinPath [ wmctrl ]}"
115 updateScript = nix-update-script {
122 description = "A fast application launcher for Linux, written in Python, using GTK";
123 homepage = "https://ulauncher.io/";
124 license = licenses.gpl3;
125 platforms = platforms.linux;
126 maintainers = with maintainers; [ aaronjanse ];