Merge pull request #134096 from angustrau/emote

emote: init at 2.0.0
This commit is contained in:
Sandro 2021-08-21 14:35:37 +02:00 committed by GitHub
commit 6f1f387562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

@ -0,0 +1,56 @@
{ lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, gtk3, keybinder3, xdotool, pango, gdk-pixbuf, atk, librsvg }:
python3Packages.buildPythonApplication rec {
pname = "emote";
version = "2.0.0";
src = fetchFromGitHub {
owner = "tom-james-watson";
repo = "Emote";
rev = "v${version}";
sha256 = "kYXFD6VBnuEZ0ZMsF6ZmN4V0JN83puxRILpNlllVsKQ=";
};
postPatch = ''
substituteInPlace setup.py --replace "pygobject==3.36.0" "pygobject"
substituteInPlace emote/config.py --replace 'os.environ.get("SNAP")' "'$out/share/emote'"
substituteInPlace snap/gui/emote.desktop --replace "Icon=\''${SNAP}/usr/share/icons/emote.svg" "Icon=emote.svg"
'';
nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
keybinder3
pango
gdk-pixbuf
atk
];
propagatedBuildInputs = [
python3Packages.pygobject3
gtk3
xdotool
librsvg
];
postInstall = ''
install -D snap/gui/emote.desktop $out/share/applications/emote.desktop
install -D snap/gui/emote.svg $out/share/pixmaps/emote.svg
install -D -t $out/share/emote/static static/{emojis.json,logo.svg,style.css}
'';
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
doCheck = false;
meta = with lib; {
description = "A modern emoji picker for Linux";
homepage = "https://github.com/tom-james-watson/emote";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ angustrau ];
platforms = platforms.linux;
};
}

@ -4448,6 +4448,8 @@ with pkgs;
autoreconfHook = buildPackages.autoreconfHook269;
};
emote = callPackage ../tools/inputmethods/emote { };
engauge-digitizer = libsForQt5.callPackage ../applications/science/math/engauge-digitizer { };
epubcheck = callPackage ../tools/text/epubcheck { };