Username: Password: Remember me
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Clément DEMOULINS <clement@archivel.fr>
 
pkgbase=python-networkx
pkgname=python3-networkx
pkgver=2.2
pkgrel=1
pkgdesc='Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.'
arch=('x86_64')
license=('BSD')
url="https://networkx.github.io"
depends=('python3-decorator')
optdepends=('python3-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools.'
              'python3-scipy: Provides flexible drawing of graphs.'
              'python3-pydot: Provides graph drawing and graph layout algorithms.'
              'python3-pyparsing: Required for pydot, GML file reading.'
              'python3-yaml: Required for YAML format reading and writing.')
makedepends=('python3-setuptools' 'python3-decorator')
source=("https://github.com/networkx/networkx/archive/networkx-$pkgver.tar.gz")
sha512sums=('247ca4d66d33cec86412df846cc1fdbe1cbb0eeee83fb2a9ccdd702eb1453dd7167b397ed77d6b3dfdef6346485160ce75c12be58372238aaf98d334b4c8aeb4')
 
build() {
  cd networkx-networkx-$pkgver
  python3 setup.py build
}
 
package() {
 
  cd networkx-networkx-$pkgver
  python3 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
}