gaphor: 2.8.2 -> 2.26.0 (#335627)

This commit is contained in:
Leona Maroni 2024-11-08 13:16:24 +01:00 committed by GitHub
commit 2f457890b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 74 additions and 17 deletions

View File

@ -1044,6 +1044,12 @@
github = "Alexnortung";
githubId = 1552267;
};
alex-nt = {
email = "nix@azuremyst.org";
github = "alex-nt";
githubId = 12470950;
name = "AN";
};
alexoundos = {
email = "alexoundos@gmail.com";
github = "AleXoundOS";

View File

@ -0,0 +1,33 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "better-exceptions";
version = "0.3.3";
pyproject = true;
src = fetchPypi {
pname = "better_exceptions";
inherit version;
hash = "sha256-5Oa8GERNXwTm6JSxA4Hl6SHT1UQkBBgWLH21fp6zRTs=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "better_exceptions" ];
# As noted by @WolfangAukang, some check files need to be disabled because of various errors, same with some tests.
# After disabling and running the build, no tests are collected.
doCheck = false;
meta = {
description = "Pretty and more helpful exceptions in Python, automatically";
homepage = "https://github.com/qix-/better-exceptions";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.alex-nt ];
};
}

View File

@ -4,16 +4,23 @@
, copyDesktopItems
, gobject-introspection
, poetry-core
, wrapGAppsHook3
, gtksourceview4
, wrapGAppsHook4
, gtksourceview5
, libadwaita
, pango
, gaphas
, generic
, jedi
, pycairo
, pillow
, dulwich
, pydot
, defusedxml
, better-exceptions
, babel
, pygobject3
, tinycss2
, gtk3
, gtk4
, librsvg
, makeDesktopItem
, python
@ -21,34 +28,43 @@
buildPythonApplication rec {
pname = "gaphor";
version = "2.8.2";
format = "pyproject";
version = "2.26.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0=";
hash = "sha256-e0K5bfgPqlJh8qrAz40c/w3ANzkfa/6txuqzQDJYXfE=";
};
pythonRelaxDeps = [ "defusedxml" ];
nativeBuildInputs = [
copyDesktopItems
gobject-introspection
poetry-core
wrapGAppsHook3
wrapGAppsHook4
];
buildInputs = [
gtksourceview4
gtksourceview5
pango
libadwaita
];
propagatedBuildInputs = [
gaphas
generic
jedi
build-system = [ poetry-core ];
dependencies = [
pycairo
pygobject3
gaphas
generic
tinycss2
babel
jedi
better-exceptions
pydot
pillow
defusedxml
dulwich
];
desktopItems = [
@ -61,7 +77,7 @@ buildPythonApplication rec {
})
];
# Disable automatic wrapGAppsHook3 to prevent double wrapping
# Disable automatic wrapGAppsHook4 to prevent double wrapping
dontWrapGApps = true;
postInstall = ''
@ -71,7 +87,7 @@ buildPythonApplication rec {
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}" \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
--prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}/" \
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
)
'';
@ -81,6 +97,6 @@ buildPythonApplication rec {
maintainers = [ ];
homepage = "https://github.com/gaphor/gaphor";
license = licenses.asl20;
platforms = [ "x86_64-linux" ];
platforms = lib.platforms.linux;
};
}

View File

@ -1591,6 +1591,8 @@ self: super: with self; {
betamax-serializers = callPackage ../development/python-modules/betamax-serializers { };
better-exceptions = callPackage ../development/python-modules/better-exceptions { };
betterproto = callPackage ../development/python-modules/betterproto { };
beziers = callPackage ../development/python-modules/beziers { };