1 # Maintainer: Clément DEMOULINS <clement@archivel.fr>
3 pkgname=python2-networkx
7 pkgdesc='Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.'
10 url="https://networkx.lanl.gov/"
12 optdepends=('python2-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools.',
13 'python2-scipy: Provides flexible drawing of graphs.',
14 'python-pygraphviz: Provides graph drawing and graph layout algorithms.',
15 'pydot: Provides graph drawing and graph layout algorithms.',
16 'python2-pyparsing: Required for pydot, GML file reading.',
17 'python2-yaml: Required for YAML format reading and writing.')
20 conflicts=('networkx')
22 source=(https://networkx.lanl.gov/download/networkx/${_pythonname}-$pkgver.zip)
23 md5sums=('9f763c7601df647203d45f9fe59faa93')
26 cd $srcdir/${_pythonname}-$pkgver/
27 python2 setup.py install --root=$pkgdir/ --optimize=1
28 install -D -m 644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt