python-networkx: update to 2.2

- remove unnecessary setuptools at runtime
- remove do_check() (missing all checkdepends)
This commit is contained in:
Alessio Sergi 2018-09-29 13:22:28 +02:00
parent c39867063d
commit c97c867544
1 changed files with 9 additions and 13 deletions

View File

@ -1,23 +1,19 @@
# Template file for 'python-networkx'
pkgname=python-networkx
version=2.1
version=2.2
revision=1
noarch=yes
build_style=python-module
wrksrc="networkx-${version}"
pycompile_module="networkx"
wrksrc="${pycompile_module}-${version}"
hostmakedepends="python-setuptools python3-setuptools unzip"
depends="python-decorator python-setuptools"
short_desc="Python2 package for creating, manipulating, and studying complex networks"
depends="python-decorator"
short_desc="Python2 package for creating and manipulating graphs and networks"
maintainer="Peter Bui <pbui@github.bx612.space>"
homepage="http://networkx.github.io"
license="BSD"
distfiles="${PYPI_SITE}/n/${pycompile_module}/${pycompile_module}-${version}.zip"
checksum=64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1
do_check() {
python3 setup.py test
}
homepage="https://networkx.github.io/"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/n/networkx/networkx-${version}.zip"
checksum=45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b
post_install() {
vlicense LICENSE.txt
@ -26,7 +22,7 @@ post_install() {
python3-networkx_package() {
noarch=yes
pycompile_module="networkx"
depends="python3-decorator python3-setuptools"
depends="python3-decorator"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*