Package Details: python-gaphor 2.24.0-2

Git Clone URL: (read-only, click to copy)
Package Base: python-gaphor
Description: Simple and easy to use modeling tool for UML using GTK3
Upstream URL:
Keywords: diagram diagrams gtk gtk3 gui python python3 uml
Licenses: Apache
Provides: gaphor
Submitter: actionless
Maintainer: actionless (fanninpm, nomisge)
Last Packager: actionless
Votes: 4
Popularity: 0.000275
First Submitted: 2020-03-30 09:39 (UTC)
Last Updated: 2024-02-18 01:54 (UTC)

Latest Comments

1 2 3 4 Next › Last »

actionless commented on 2023-10-02 09:04 (UTC) (edited on 2023-10-02 09:05 (UTC) by actionless)

@jrd what do you mean? it's already set to v5

@mrmiles just skip the check - it seems tests are failing upstream, the lib itself works though

mrmiles commented on 2023-10-02 07:30 (UTC)

Installation aborts with errors in dependency python-generic

==> ERROR: One or more files did not pass the validity check! -> Failed to install layer, rolling up to next layer.error:error making: python-generic - exit status 1

jrd commented on 2023-03-20 09:42 (UTC)

deps should be gtksourceview5 for GTK 4

nomisge commented on 2023-02-09 08:57 (UTC)

@actionless thx I pushed version 2.15.0. There is already version 2.16.0 upstream, but it depends on a newer version of python-gaphas, which needs to be updated in AUR first.

actionless commented on 2023-02-09 03:26 (UTC)

@nomisge added you

nomisge commented on 2023-02-03 08:55 (UTC) (edited on 2023-02-03 10:14 (UTC) by nomisge)

Please update the package and include the localization files. I have a working PKGBUILD and am happy to help or take over maintaining.

I specifically created python-pytest-archon in aur for the checks in the current version to work.





build() {
    cd "${_name}-${pkgver}"
    python po/
    # Note: set `GIT_CEILING_DIRECTORIES` to prevent poetry
    # from incorrectly using a parent git checkout info.
    GIT_CEILING_DIRECTORIES="${PWD}/.." python -m build --wheel --no-isolation

check() {
    cd "${srcdir}/${_name}-${pkgver}"
#   xvfb-run --auto-servernum pytest tests/
    xvfb-run --auto-servernum python -m pytest tests/

actionless commented on 2022-06-04 10:48 (UTC)

just use makepkg CLI FLAG for temporary disabling that check 😹

Popolon commented on 2022-06-04 08:30 (UTC) (edited on 2022-06-04 08:36 (UTC) by Popolon)

As currently python-xdoctest doesn't build due to tests failures, a quick & dirty patch is to apply on PKGBUILD this by git apply file.patch

diff --git a/PKGBUILD b/PKGBUILD
index 855cb57..c562983 100644
@@ -3,8 +3,8 @@

 pkgdesc="Simple and easy to use modeling tool for UML using GTK3"
@@ -29,11 +29,12 @@ checkdepends=(
-       'python-xdoctest'
+#      'python-xdoctest'

 build() {
        cd "${_name}-${pkgver}"
@@ -45,7 +46,7 @@ build() {

 check() {
        cd "${srcdir}/${_name}-${pkgver}"
-       xvfb-run --auto-servernum pytest
+#      xvfb-run --auto-servernum pytest

 prepare() {

actionless commented on 2022-05-08 12:45 (UTC)

just run makepkg with a flag to skip the check() if you want to skip failing tests

qruqs commented on 2022-05-08 10:00 (UTC)

@actionless: Restart, as in restarting the system. Most likely because of some fancy thing not installed prior.

@those_who_have_problems: As a general rule if you run into problems and an application refuse to start, always check if it is possible to start the application using the Terminal. You often get information output to stderr and you may be able to see what is missing and/or what otherwise might have gone wrong. I know many seem to forget it exists as an option. Maybe not always, but it often does.

If you have problems with a Python application (as in this case), you could try installing it via PyPi:

First, if you are unsure how to use Python at the prompt, I suggest you do this first:

$ python -c "import sys; print(sys.version)"

If the above line gives you a result with no errors at the $ prompt, something like "3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0]", try installing gaphor using:

$ pip install gaphor

Normal behavior is that it, at the very least, should pull in any missing Python packages. The application will install in your home directory, no need for root/sudo.

If the application needs things that aren't Python related, you might have to investigate further what is missing, e.g. by trying to start it via the Terminal, as previously mentioned.

Here's my install session, for those who never done any of this (imagine inverted colors):

$ pip install gaphor
Defaulting to user installation because normal site-packages is not writeable
Collecting gaphor
  Downloading gaphor-2.9.2-py3-none-any.whl (721 kB)
     |████████████████████████████████| 721 kB 9.5 MB/s            
Requirement already satisfied: PyGObject<4.0,>=3.30 in /usr/lib/python3.10/site-packages (from gaphor) (3.42.0)
Requirement already satisfied: jedi<0.19.0,>=0.18.1 in /usr/lib/python3.10/site-packages (from gaphor) (0.18.1)
Requirement already satisfied: generic<2.0.0,>=1.0.0 in /usr/lib/python3.10/site-packages (from gaphor) (1.0.1)
Requirement already satisfied: gaphas<4.0.0,>=3.1.0 in /usr/lib/python3.10/site-packages (from gaphor) (3.6.0)
Requirement already satisfied: pycairo<2.0,>=1.18 in /usr/lib/python3.10/site-packages (from gaphor) (1.21.0)
Requirement already satisfied: tinycss2<2.0.0,>=1.0.2 in /usr/lib/python3.10/site-packages (from gaphor) (1.1.1)
Requirement already satisfied: darkdetect<0.6.0,>=0.5.1 in /home/qruqs/.local/lib/python3.10/site-packages (from gaphor) (0.5.1)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in /usr/lib/python3.10/site-packages (from jedi<0.19.0,>=0.18.1->gaphor) (0.8.2)
Installing collected packages: gaphor
Successfully installed gaphor-2.9.2

I suspect the first handful of lines come from the AUR package I used before. Those may have to be updated in the future.

And the following is from selecting to start gaphor at the prompt and invoking a session with SysML:

$ gaphor
gaphor.application INFO Initializing service component_registry
gaphor.application INFO Initializing service event_manager
gaphor.application INFO Initializing service properties
gaphor.application INFO Initializing service modeling_language
gaphor.application INFO Initializing service export_menu
gaphor.application INFO Initializing service tools_menu
gaphor.application INFO Initializing service main_window
gaphor.application INFO Initializing service consolewindow
gaphor.application INFO Initializing service element_dispatcher
gaphor.application INFO Initializing service element_factory
gaphor.application INFO Initializing service toolbox
gaphor.application INFO Initializing service diagrams
gaphor.application INFO Initializing service copy
gaphor.application INFO Initializing service diagram_export
gaphor.application INFO Initializing service elementeditor
gaphor.application INFO Initializing service file_manager
gaphor.application INFO Initializing service help
gaphor.application INFO Initializing service namespace
gaphor.application INFO Initializing service recent_files
gaphor.application INFO Initializing service undo_manager
gaphor.application INFO Initializing service sanitizer
gaphor.application INFO Initializing service xmi_export INFO Loading file from file descriptor INFO Read 186 elements from file

Everything seems to be working okay.

If you later regret installing it, there is an uninstall command with pip you can use, or if you feel adventurous, simply delete everything (belonging to gaphor, that is ;) from the local directory where it was installed.