gaphor: init at 2.6.5

This commit is contained in:
P. R. d. O 2021-11-12 09:24:28 -06:00
parent c3cd0c0a74
commit 992b117aae
No known key found for this signature in database
GPG key ID: 7B0FF33FF90110C7
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,66 @@
{ lib
, buildPythonApplication
, fetchPypi
, poetry-core
, gobject-introspection
, pango
, gtksourceview4
, wrapGAppsHook
, makeDesktopItem
, copyDesktopItems
, gaphas
, generic
, pycairo
, pygobject3
, python
, tinycss2
}:
buildPythonApplication rec {
pname = "gaphor";
version = "2.6.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-IFsbWx5lblKsnEibVihM6ZPRoydXC+JM1gdZEUUTKxw=";
};
nativeBuildInputs = [
poetry-core copyDesktopItems gobject-introspection wrapGAppsHook
];
# Setting gobject-introspection on booth nativeBuildInputs and
# buildInputs because of #56943. This recognizes pango, avoiding
# a "ValueError: Namespace PangoCairo not available".
buildInputs = [ gobject-introspection gtksourceview4 pango ];
propagatedBuildInputs = [
gaphas
generic
pycairo
pygobject3
tinycss2
];
desktopItems = makeDesktopItem {
name = pname;
exec = "gaphor";
icon = "gaphor";
comment = meta.description;
desktopName = "Gaphor";
};
postInstall = ''
install -Dm644 $out/${python.sitePackages}/gaphor/ui/icons/hicolor/scalable/apps/org.gaphor.Gaphor.svg $out/share/pixmaps/gaphor.svg
'';
meta = with lib; {
description = "Simple modeling tool written in Python";
maintainers = with maintainers; [ wolfangaukang ];
homepage = "https://github.com/gaphor/gaphor";
license = licenses.asl20;
platforms = [ "x86_64-linux" ];
};
}

View file

@ -5336,6 +5336,8 @@ with pkgs;
gandom-fonts = callPackage ../data/fonts/gandom-fonts { };
gaphor = python3Packages.callPackage ../tools/misc/gaphor { };
garmin-plugin = callPackage ../applications/misc/garmin-plugin {};
garmintools = callPackage ../development/libraries/garmintools {};