[arch-commits] Commit in python-objgraph/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:55:48 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:47
  Author: foutrelis
Revision: 1059547

archrelease: copy trunk to community-staging-any

Added:
  python-objgraph/repos/community-staging-any/
  python-objgraph/repos/community-staging-any/PKGBUILD
    (from rev 1059546, python-objgraph/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-objgraph/repos/community-staging-any/PKGBUILD (from rev 1059546, python-objgraph/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:47 UTC (rev 1059547)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-objgraph
+pkgver=3.5.0
+pkgrel=5
+pkgdesc="Draws Python object reference graphs with graphviz"
+url="https://github.com/mgedmin/objgraph"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'graphviz')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mgedmin/objgraph/archive/$pkgver.tar.gz")
+sha512sums=('50bf1967d6696547598628d49f3c827f1535d6de032fb429881e523f144bb57e128d09f43d280b89a0f9205ca97ef10331e0da1dc86637af0214bfd7aa4cba3b')
+
+prepare() {
+  # Only for ipython support
+  sed -i "/'graphviz'/d" objgraph-$pkgver/setup.py
+}
+
+build() {
+  cd "$srcdir"/objgraph-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/objgraph-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd objgraph-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list