[arch-commits] Commit in (3 files)

Antonio Rojas arojas at archlinux.org
Thu Jul 4 19:13:18 UTC 2019


    Date: Thursday, July 4, 2019 @ 19:13:17
  Author: arojas
Revision: 487445

Add python2-networkx split package

Added:
  python2-networkx/
  python2-networkx/trunk/
  python2-networkx/trunk/PKGBUILD

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

Added: python2-networkx/trunk/PKGBUILD
===================================================================
--- python2-networkx/trunk/PKGBUILD	                        (rev 0)
+++ python2-networkx/trunk/PKGBUILD	2019-07-04 19:13:17 UTC (rev 487445)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Clément DEMOULINS <clement at archivel.fr>
+
+pkgname=python2-networkx
+pkgver=2.2
+pkgrel=2
+pkgdesc='Python 2 package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.'
+arch=(any)
+license=(BSD)
+url="https://networkx.github.io"
+depends=(python2-decorator)
+makedepends=(python2-setuptools)
+checkdepends=(python2-nose)
+optdepends=('python2-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools'
+            'python2-scipy: Provides flexible drawing of graphs'
+            'python2-pydot: Provides graph drawing and graph layout algorithms'
+            'python2-pyparsing: Required for pydot, GML file reading'
+            'python2-yaml: Required for YAML format reading and writing')
+source=("https://github.com/networkx/networkx/archive/networkx-$pkgver.tar.gz")
+sha256sums=('74efce06507cdc2e506c6b7d485a18617adc3a7f355e2dc48ca71c83929bc679')
+
+build() {
+  cd networkx-networkx-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd networkx-networkx-$pkgver
+  python2 setup.py nosetests
+}
+
+package() {
+  cd networkx-networkx-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+  mv "$pkgdir"/usr/share/doc/networkx-$pkgver "$pkgdir"/usr/share/doc/$pkgname
+}


More information about the arch-commits mailing list