Package Details: python-diagrams 0.23.4-1

Git Clone URL: (read-only, click to copy)
Package Base: python-diagrams
Description: Diagram as Code for prototyping cloud system architectures
Upstream URL:
Keywords: diagram drawing prototyping
Licenses: MIT
Submitter: flipee
Maintainer: flipee
Last Packager: flipee
Votes: 2
Popularity: 0.000000
First Submitted: 2020-09-28 19:15 (UTC)
Last Updated: 2024-01-27 17:32 (UTC)

Latest Comments

flipee commented on 2021-09-23 22:10 (UTC)

@agorg_louk The issue is in, the upstream isn't including the image assets. Also, it isn't a good practice to add the package assets to the site-packages root. I'm adding a patch to fix this.

agorg_louk commented on 2021-09-23 06:54 (UTC)

Proposed changes:

diff --git a/PKGBUILD b/PKGBUILD
index 3a05623..08e8a69 100644
@@ -9,17 +9,17 @@ arch=('any')
 depends=('python-graphviz' 'python-jinja')
+makedepends=('python-pip' 'python-poetry')

 build() {
     cd $_name-$pkgver
-    python build
+    poetry build --format wheel

 package() {
     cd $_name-$pkgver
-    python install --root "$pkgdir" --skip-build --optimize=1
+    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
     install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

agorg_louk commented on 2021-09-23 06:41 (UTC)

The package is incorrect, it is missing the image assets that are used for the nodes.