1 { lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, gtk3, keybinder3, xdotool, pango, gdk-pixbuf, atk }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
8 owner = "tom-james-watson";
11 sha256 = "sha256-brGU5LzE9A1F5AVNIuyd8vFKEh58ijRB5qVEID/KJfY=";
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"
36 propagatedBuildInputs = [
37 python3Packages.manimpango
38 python3Packages.pygobject3
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}
50 "''${gappsWrapperArgs[@]}"
51 --prefix PATH : ${lib.makeBinPath [ xdotool ]}
58 description = "Modern emoji picker for Linux";
59 homepage = "https://github.com/tom-james-watson/emote";
60 license = licenses.gpl3Plus;
61 maintainers = with maintainers; [ emilytrau SuperSandro2000 ];
62 platforms = platforms.linux;