updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / python2-networkx / PKGBUILD
blob8cf1c2a83352f244ebc9e65a41ad024e92177b51
1 # Maintainer: ClĂ©ment DEMOULINS <clement@archivel.fr>
3 pkgname=python2-networkx
4 _pythonname=networkx
5 pkgver=1.6
6 pkgrel=1
7 pkgdesc='Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.'
8 arch=('any')
9 license=('BSD')
10 url="https://networkx.lanl.gov/"
11 depends=('python2')
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.')
18 provides=('networkx')
19 replaces=('networkx')
20 conflicts=('networkx')
22 source=(https://networkx.lanl.gov/download/networkx/${_pythonname}-$pkgver.zip)
23 md5sums=('9f763c7601df647203d45f9fe59faa93')
25 build() {
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