[arch-commits] Commit in python-networkx/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 31 07:07:21 UTC 2019


    Date: Friday, May 31, 2019 @ 07:07:20
  Author: felixonmars
Revision: 475836

upgpkg: python-networkx 2.3-1

Modified:
  python-networkx/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-31 06:56:45 UTC (rev 475835)
+++ PKGBUILD	2019-05-31 07:07:20 UTC (rev 475836)
@@ -1,54 +1,36 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Clément DEMOULINS <clement at archivel.fr>
 
-pkgbase=python-networkx
-pkgname=(python-networkx python2-networkx)
-pkgver=2.2
+pkgname=python-networkx
+pkgver=2.3
 pkgrel=1
 pkgdesc='Python 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"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator')
-checkdepends=('python-nose' 'python2-nose')
+depends=('python-decorator')
+optdepends=('python-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools.'
+            'python-scipy: Provides flexible drawing of graphs.'
+            'python-pyparsing: Required for pydot, GML file reading.'
+            'python-yaml: Required for YAML format reading and writing.')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
 source=("https://github.com/networkx/networkx/archive/networkx-$pkgver.tar.gz")
-sha512sums=('247ca4d66d33cec86412df846cc1fdbe1cbb0eeee83fb2a9ccdd702eb1453dd7167b397ed77d6b3dfdef6346485160ce75c12be58372238aaf98d334b4c8aeb4')
+sha512sums=('c94de6f4804e8972e79d125c59d1a6c2c4287123146696e33ecea677f4d78dd319c025ad343238bd350fd1df1396b06eb6cffd33e6182ec7037a585c8857dbe8')
 
 build() {
   cd networkx-networkx-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd networkx-networkx-$pkgver
   python setup.py nosetests
-  python2 setup.py nosetests
 }
 
-package_python-networkx() {
-  depends=('python-decorator')
-  optdepends=('python-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools.'
-              'python-scipy: Provides flexible drawing of graphs.'
-              'python-pyparsing: Required for pydot, GML file reading.'
-              'python-yaml: Required for YAML format reading and writing.')
-
+package() {
   cd networkx-networkx-$pkgver
   python 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
 }
-
-package_python2-networkx() {
-  depends=('python2-decorator')
-  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.')
-
-  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