Merge pull request #145055 from angustrau/emote-3.0.3

This commit is contained in:
Sandro
2021-11-11 14:00:02 +01:00
committed by GitHub
3 changed files with 49 additions and 4 deletions
@@ -0,0 +1,37 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook }:
buildPythonPackage rec {
pname = "manimpango";
version = "0.3.1";
src = fetchFromGitHub {
owner = "ManimCommunity";
repo = pname;
rev = "v${version}";
sha256 = "ldZfvv5kloQ0uj0agxOP8cRh+Ix8f9Z0PT+pnhWYjiQ=";
};
postPatch = ''
substituteInPlace setup.cfg --replace "--cov --no-cov-on-fail" ""
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
propagatedBuildInputs = [
cython
];
preBuild = ''
${python.interpreter} setup.py build_ext --inplace
'';
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "manimpango" ];
meta = with lib; {
homepage = "https://github.com/ManimCommunity/ManimPango";
license = licenses.gpl3Plus;
description = "Binding for Pango";
maintainers = [ maintainers.angustrau ];
};
}
+8 -4
View File
@@ -2,18 +2,21 @@
python3Packages.buildPythonApplication rec {
pname = "emote";
version = "2.0.0";
version = "3.0.3";
src = fetchFromGitHub {
owner = "tom-james-watson";
repo = "Emote";
rev = "v${version}";
sha256 = "kYXFD6VBnuEZ0ZMsF6ZmN4V0JN83puxRILpNlllVsKQ=";
sha256 = "mqCSl+EGbnL9AfzZT3aa/Y5Rsx433ZmI31BmK3wkaJk=";
};
postPatch = ''
substituteInPlace setup.py --replace "pygobject==3.36.0" "pygobject"
substituteInPlace setup.py \
--replace "pygobject==3.36.0" "pygobject" \
--replace "manimpango==0.3.0" "manimpango"
substituteInPlace emote/config.py --replace 'os.environ.get("SNAP")' "'$out/share/emote'"
substituteInPlace emote/picker.py --replace 'os.environ.get("SNAP_VERSION", "dev build")' "'$version'"
substituteInPlace snap/gui/emote.desktop --replace "Icon=\''${SNAP}/usr/share/icons/emote.svg" "Icon=emote.svg"
'';
@@ -27,6 +30,7 @@ python3Packages.buildPythonApplication rec {
];
propagatedBuildInputs = [
python3Packages.manimpango
python3Packages.pygobject3
gtk3
xdotool
@@ -36,7 +40,7 @@ python3Packages.buildPythonApplication rec {
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}
install -D -t $out/share/emote/static static/{NotoColorEmoji.ttf,emojis.csv,logo.svg,style.css}
'';
dontWrapGApps = true;
+4
View File
@@ -4581,6 +4581,10 @@ in {
manhole = callPackage ../development/python-modules/manhole { };
manimpango = callPackage ../development/python-modules/manimpango {
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
};
manifestparser = callPackage ../development/python-modules/marionette-harness/manifestparser.nix { };
manuel = callPackage ../development/python-modules/manuel { };