New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gaphor: init at 2.6.5 #142708
Merged
Merged
gaphor: init at 2.6.5 #142708
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, pythonOlder | ||
, fetchPypi | ||
, poetry-core | ||
, gobject-introspection | ||
, gtk3 | ||
, pycairo | ||
, pygobject3 | ||
, typing-extensions | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "gaphas"; | ||
version = "3.1.9"; | ||
disabled = pythonOlder "3.7"; | ||
|
||
format = "pyproject"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "sha256-S6cRsfqXYM4mSVSs2M8fET5ShFClKkGkod2w2y6F2gc="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
poetry-core | ||
]; | ||
|
||
buildInputs = [ gobject-introspection gtk3 ]; | ||
|
||
propagatedBuildInputs = [ | ||
pycairo | ||
pygobject3 | ||
typing-extensions | ||
]; | ||
|
||
pythonImportsCheck = [ "gaphas" ]; | ||
|
||
meta = with lib; { | ||
description = "GTK+ based diagramming widget"; | ||
maintainers = with maintainers; [ wolfangaukang ]; | ||
homepage = "https://github.com/gaphor/gaphas"; | ||
license = licenses.asl20; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, pythonOlder | ||
, fetchPypi | ||
, poetry-core | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "generic"; | ||
version = "1.0.1"; | ||
disabled = pythonOlder "3.7"; | ||
|
||
format = "pyproject"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "sha256-ex93I+ofo5lP6qoolZwzjxSspeqJimY3vpB32RLJ00k="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
poetry-core | ||
]; | ||
|
||
pythonImportsCheck = [ "generic" ]; | ||
|
||
meta = with lib; { | ||
description = "Generic programming (Multiple dispatch) library for Python"; | ||
maintainers = with maintainers; [ wolfangaukang ]; | ||
homepage = "https://github.com/gaphor/generic"; | ||
license = licenses.bsdOriginal; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing against your PR, just the package name -_-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ikr, I thought the same. If you have any recommendations, I would be happy to change it, because it is too "generic" :)