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