ulauncher: init at 4.4.0.r1

Co-Authored-By: worldofpeace <worldofpeace@protonmail.ch>

authored by

Aaron Janse
worldofpeace
and committed by
worldofpeace
a9a03c70 8d1270f9

+136
+13
maintainers/maintainer-list.nix
··· 62 62 github = "aanderse"; 63 63 name = "Aaron Andersen"; 64 64 }; 65 + aaronjanse = { 66 + email = "aaron@ajanse.me"; 67 + github = "aaronjanse"; 68 + name = "Aaron Janse"; 69 + keys = [ 70 + { longkeyid = "rsa2048/0x651BD4B37D75E234"; # Email only 71 + fingerprint = "490F 5009 34E7 20BD 4C53 96C2 651B D4B3 7D75 E234"; 72 + } 73 + { longkeyid = "rsa4096/0xBE6C92145BFF4A34"; # Git, etc 74 + fingerprint = "CED9 6DF4 63D7 B86A 1C4B 1322 BE6C 9214 5BFF 4A34"; 75 + } 76 + ]; 77 + }; 65 78 aaronschif = { 66 79 email = "aaronschif@gmail.com"; 67 80 github = "aaronschif";
+108
pkgs/applications/misc/ulauncher/default.nix
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , fetchurl 4 + , python27Packages 5 + , substituteAll 6 + , gnome3 7 + , gobject-introspection 8 + , wrapGAppsHook 9 + , gtk3 10 + , webkitgtk 11 + , libnotify 12 + , keybinder3 13 + , libappindicator 14 + , intltool 15 + , wmctrl 16 + , hicolor-icon-theme 17 + , xvfb_run 18 + }: 19 + 20 + python27Packages.buildPythonApplication rec { 21 + pname = "ulauncher"; 22 + version = "4.4.0.r1"; 23 + 24 + # Python 3 support is currently in development 25 + # on the dev branch and 5.x.x releases 26 + disabled = ! python27Packages.isPy27; 27 + 28 + src = fetchurl { 29 + url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz"; 30 + sha256 = "12v7qpjhf0842ivsfflsl2zlvhiaw25f9ffv7vhnkvrhrmksim9f"; 31 + }; 32 + 33 + nativeBuildInputs = with python27Packages; [ 34 + distutils_extra 35 + intltool 36 + wrapGAppsHook 37 + ]; 38 + 39 + buildInputs = [ 40 + gnome3.adwaita-icon-theme 41 + gobject-introspection 42 + hicolor-icon-theme 43 + keybinder3 44 + libappindicator 45 + libnotify 46 + webkitgtk 47 + wmctrl 48 + ]; 49 + 50 + propagatedBuildInputs = with python27Packages; [ 51 + dbus-python 52 + notify 53 + pygobject3 54 + pyinotify 55 + pysqlite 56 + python-Levenshtein 57 + pyxdg 58 + websocket_client 59 + ]; 60 + 61 + checkInputs = with python27Packages; [ 62 + mock 63 + pytest_3 64 + pytest-mock 65 + pytestpep8 66 + xvfb_run 67 + ]; 68 + 69 + patches = [ 70 + ./fix-path.patch 71 + ]; 72 + 73 + postPatch = '' 74 + substituteInPlace setup.py --subst-var out 75 + ''; 76 + 77 + # https://github.com/Ulauncher/Ulauncher/issues/390 78 + doCheck = false; 79 + 80 + preCheck = '' 81 + export PYTHONPATH=$PYTHONPATH:$out/${python27Packages.python.sitePackages} 82 + ''; 83 + 84 + # Simple translation of 85 + # - https://github.com/Ulauncher/Ulauncher/blob/f5a601bdca75198a6a31b9d84433496b63530e74/test 86 + checkPhase = '' 87 + runHook preCheck 88 + 89 + # skip tests in invocation that handle paths that 90 + # aren't nix friendly (i think) 91 + xvfb-run -s '-screen 0 1024x768x16' \ 92 + pytest -k 'not TestPath and not test_handle_key_press_event' --pep8 tests 93 + 94 + runHook postCheck 95 + ''; 96 + 97 + preFixup = '' 98 + gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ wmctrl ]}") 99 + ''; 100 + 101 + meta = with stdenv.lib; { 102 + description = "A fast application launcher for Linux, written in Python, using GTK"; 103 + homepage = https://ulauncher.io/; 104 + license = licenses.gpl3; 105 + platforms = platforms.linux; 106 + maintainers = with maintainers; [ aaronjanse worldofpeace ]; 107 + }; 108 + }
+13
pkgs/applications/misc/ulauncher/fix-path.patch
··· 1 + diff --git a/setup.py b/setup.py 2 + index 3616104..e9bbfda 100755 3 + --- a/setup.py 4 + +++ b/setup.py 5 + @@ -112,7 +112,7 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): 6 + DistUtilsExtra.auto.install_auto.run(self) 7 + 8 + target_data = '/' + os.path.relpath(self.install_data, self.root) + '/' 9 + - target_pkgdata = target_data + 'share/ulauncher/' 10 + + target_pkgdata = '@out@/share/ulauncher/' 11 + target_scripts = '/' + os.path.relpath(self.install_scripts, 12 + self.root) + '/' 13 +
+2
pkgs/top-level/all-packages.nix
··· 19829 19829 19830 19830 testssl = callPackage ../applications/networking/testssl { }; 19831 19831 19832 + ulauncher = callPackage ../applications/misc/ulauncher { }; 19833 + 19832 19834 umurmur = callPackage ../applications/networking/umurmur { }; 19833 19835 19834 19836 udocker = pythonPackages.callPackage ../tools/virtualization/udocker { };