gaphor: init at 2.6.5
This commit is contained in:
parent
c3cd0c0a74
commit
992b117aae
66
pkgs/tools/misc/gaphor/default.nix
Normal file
66
pkgs/tools/misc/gaphor/default.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5336,6 +5336,8 @@ with pkgs;
|
||||||
|
|
||||||
gandom-fonts = callPackage ../data/fonts/gandom-fonts { };
|
gandom-fonts = callPackage ../data/fonts/gandom-fonts { };
|
||||||
|
|
||||||
|
gaphor = python3Packages.callPackage ../tools/misc/gaphor { };
|
||||||
|
|
||||||
garmin-plugin = callPackage ../applications/misc/garmin-plugin {};
|
garmin-plugin = callPackage ../applications/misc/garmin-plugin {};
|
||||||
|
|
||||||
garmintools = callPackage ../development/libraries/garmintools {};
|
garmintools = callPackage ../development/libraries/garmintools {};
|
||||||
|
|
Loading…
Reference in a new issue