emote: 3.1.0 -> 4.0.1

+11 -14
+11 -14
pkgs/tools/inputmethods/emote/default.nix
··· 1 - { lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, gtk3, keybinder3, xdotool, pango, gdk-pixbuf, atk }: 1 + { lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, keybinder3, xdotool }: 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "emote"; 5 - version = "3.1.0"; 5 + version = "4.0.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "tom-james-watson"; 9 9 repo = "Emote"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-brGU5LzE9A1F5AVNIuyd8vFKEh58ijRB5qVEID/KJfY="; 11 + sha256 = "sha256-+GpL4Rp0ECsxXGP9dWZbVNkH7H2GF1brDTLsB+TQY5A="; 12 12 }; 13 13 14 14 postPatch = '' 15 - substituteInPlace setup.py \ 16 - --replace "pygobject==3.36.0" "pygobject" \ 17 - --replace "manimpango==0.3.0" "manimpango" 15 + sed -i setup.py -e '/==.*/d' 18 16 substituteInPlace emote/config.py --replace 'os.environ.get("SNAP")' "'$out/share/emote'" 19 17 substituteInPlace emote/picker.py --replace 'os.environ.get("SNAP_VERSION", "dev build")' "'$version'" 20 18 substituteInPlace snap/gui/emote.desktop --replace "Icon=\''${SNAP}/usr/share/icons/emote.svg" "Icon=emote.svg" ··· 26 24 ]; 27 25 28 26 buildInputs = [ 29 - atk 30 - gdk-pixbuf 31 - gtk3 27 + # used by gobject-introspection's setup-hook and only detected at runtime 32 28 keybinder3 33 - pango 34 29 ]; 35 30 36 - propagatedBuildInputs = [ 37 - python3Packages.manimpango 38 - python3Packages.pygobject3 31 + propagatedBuildInputs = with python3Packages; [ 32 + dbus-python 33 + manimpango 34 + pygobject3 # not listed in setup.py 35 + setproctitle 39 36 ]; 40 37 41 38 postInstall = '' 42 39 install -D snap/gui/emote.desktop $out/share/applications/emote.desktop 43 40 install -D snap/gui/emote.svg $out/share/pixmaps/emote.svg 44 - install -D -t $out/share/emote/static static/{NotoColorEmoji.ttf,emojis.csv,logo.svg,style.css} 41 + install -D -t $out/share/emote/static static/{emojis.csv,logo.svg,style.css} 45 42 ''; 46 43 47 44 dontWrapGApps = true;