diff options
author | Antonio Rojas | 2020-02-15 22:45:56 +0000 |
---|---|---|
committer | Antonio Rojas | 2020-02-15 22:45:56 +0000 |
commit | 37915a546bafb1771c4f05097ac145886b2883aa (patch) | |
tree | 9a23573fd692e0cff34249c18eba2029b89dc5ff | |
download | aur-37915a546bafb1771c4f05097ac145886b2883aa.tar.gz |
Dropped from repos
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..311d3ef8a35d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python2-networkx + pkgdesc = Python 2 package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. + pkgver = 2.2 + pkgrel = 2 + url = https://networkx.github.io + arch = any + license = BSD + checkdepends = python2-nose + makedepends = python2-setuptools + depends = python2-decorator + optdepends = python2-numpy: Provides sparse matrix representation of graphs and many numerical scientific tools + optdepends = python2-scipy: Provides flexible drawing of graphs + optdepends = python2-pydot: Provides graph drawing and graph layout algorithms + optdepends = python2-pyparsing: Required for pydot, GML file reading + optdepends = python2-yaml: Required for YAML format reading and writing + source = https://github.com/networkx/networkx/archive/networkx-2.2.tar.gz + sha256sums = 74efce06507cdc2e506c6b7d485a18617adc3a7f355e2dc48ca71c83929bc679 + +pkgname = python2-networkx + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cea82abeaade --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Antonio Rojas <arojas@archlinux.org> +# Contributor: Felix Yan <felixonmars@archlinux.org> +# Contributor: Clément DEMOULINS <clement@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 +} |