Skip to content

Commit 2f45789

Browse files
authored
gaphor: 2.8.2 -> 2.26.0 (#335627)
2 parents 557398e + 2901476 commit 2f45789

File tree

4 files changed

+74
-17
lines changed

4 files changed

+74
-17
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,12 @@
10441044
github = "Alexnortung";
10451045
githubId = 1552267;
10461046
};
1047+
alex-nt = {
1048+
email = "[email protected]";
1049+
github = "alex-nt";
1050+
githubId = 12470950;
1051+
name = "AN";
1052+
};
10471053
alexoundos = {
10481054
email = "[email protected]";
10491055
github = "AleXoundOS";
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchPypi,
5+
setuptools,
6+
}:
7+
8+
buildPythonPackage rec {
9+
pname = "better-exceptions";
10+
version = "0.3.3";
11+
pyproject = true;
12+
13+
src = fetchPypi {
14+
pname = "better_exceptions";
15+
inherit version;
16+
hash = "sha256-5Oa8GERNXwTm6JSxA4Hl6SHT1UQkBBgWLH21fp6zRTs=";
17+
};
18+
19+
build-system = [ setuptools ];
20+
21+
pythonImportsCheck = [ "better_exceptions" ];
22+
23+
# As noted by @WolfangAukang, some check files need to be disabled because of various errors, same with some tests.
24+
# After disabling and running the build, no tests are collected.
25+
doCheck = false;
26+
27+
meta = {
28+
description = "Pretty and more helpful exceptions in Python, automatically";
29+
homepage = "https://github.com/qix-/better-exceptions";
30+
license = lib.licenses.mit;
31+
maintainers = [ lib.maintainers.alex-nt ];
32+
};
33+
}

pkgs/tools/misc/gaphor/default.nix

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,67 @@
44
, copyDesktopItems
55
, gobject-introspection
66
, poetry-core
7-
, wrapGAppsHook3
8-
, gtksourceview4
7+
, wrapGAppsHook4
8+
, gtksourceview5
9+
, libadwaita
910
, pango
1011
, gaphas
1112
, generic
1213
, jedi
1314
, pycairo
15+
, pillow
16+
, dulwich
17+
, pydot
18+
, defusedxml
19+
, better-exceptions
20+
, babel
1421
, pygobject3
1522
, tinycss2
16-
, gtk3
23+
, gtk4
1724
, librsvg
1825
, makeDesktopItem
1926
, python
2027
}:
2128

2229
buildPythonApplication rec {
2330
pname = "gaphor";
24-
version = "2.8.2";
25-
26-
format = "pyproject";
31+
version = "2.26.0";
32+
pyproject = true;
2733

2834
src = fetchPypi {
2935
inherit pname version;
30-
hash = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0=";
36+
hash = "sha256-e0K5bfgPqlJh8qrAz40c/w3ANzkfa/6txuqzQDJYXfE=";
3137
};
3238

39+
pythonRelaxDeps = [ "defusedxml" ];
40+
3341
nativeBuildInputs = [
3442
copyDesktopItems
3543
gobject-introspection
36-
poetry-core
37-
wrapGAppsHook3
44+
wrapGAppsHook4
3845
];
3946

4047
buildInputs = [
41-
gtksourceview4
48+
gtksourceview5
4249
pango
50+
libadwaita
4351
];
4452

45-
propagatedBuildInputs = [
46-
gaphas
47-
generic
48-
jedi
53+
build-system = [ poetry-core ];
54+
55+
dependencies = [
4956
pycairo
5057
pygobject3
58+
gaphas
59+
generic
5160
tinycss2
61+
babel
62+
jedi
63+
better-exceptions
64+
pydot
65+
pillow
66+
defusedxml
67+
dulwich
5268
];
5369

5470
desktopItems = [
@@ -61,7 +77,7 @@ buildPythonApplication rec {
6177
})
6278
];
6379

64-
# Disable automatic wrapGAppsHook3 to prevent double wrapping
80+
# Disable automatic wrapGAppsHook4 to prevent double wrapping
6581
dontWrapGApps = true;
6682

6783
postInstall = ''
@@ -71,7 +87,7 @@ buildPythonApplication rec {
7187
preFixup = ''
7288
makeWrapperArgs+=(
7389
"''${gappsWrapperArgs[@]}" \
74-
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
90+
--prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}/" \
7591
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
7692
)
7793
'';
@@ -81,6 +97,6 @@ buildPythonApplication rec {
8197
maintainers = [ ];
8298
homepage = "https://github.com/gaphor/gaphor";
8399
license = licenses.asl20;
84-
platforms = [ "x86_64-linux" ];
100+
platforms = lib.platforms.linux;
85101
};
86102
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,8 @@ self: super: with self; {
15911591

15921592
betamax-serializers = callPackage ../development/python-modules/betamax-serializers { };
15931593

1594+
better-exceptions = callPackage ../development/python-modules/better-exceptions { };
1595+
15941596
betterproto = callPackage ../development/python-modules/betterproto { };
15951597

15961598
beziers = callPackage ../development/python-modules/beziers { };

0 commit comments

Comments
 (0)