Package Details: python-diagrams 0.23.4-1

Git Clone URL: https://aur.archlinux.org/python-diagrams.git (read-only, click to copy)
Package Base: python-diagrams
Description: Diagram as Code for prototyping cloud system architectures
Upstream URL: https://diagrams.mingrammer.com
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 setup.py, 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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,17 +9,17 @@ arch=('any')
 url="https://diagrams.mingrammer.com"
 license=('MIT')
 depends=('python-graphviz' 'python-jinja')
-makedepends=('python-setuptools')
+makedepends=('python-pip' 'python-poetry')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
 sha256sums=('a50743ed9274e194e7898820f69aa12868ae217003580ef9e7d0285132c9674a')

 build() {
     cd $_name-$pkgver
-    python setup.py build
+    poetry build --format wheel
 }

 package() {
     cd $_name-$pkgver
-    python setup.py 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.