2018-01-11 00:56:21 +01:00
|
|
|
# Template file for 'python-networkx'
|
|
|
|
pkgname=python-networkx
|
2018-01-27 03:35:18 +01:00
|
|
|
version=2.1
|
2018-01-11 00:56:21 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="networkx"
|
|
|
|
wrksrc="${pycompile_module}-${version}"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools unzip"
|
2018-01-27 03:35:18 +01:00
|
|
|
depends="python-decorator python-setuptools"
|
2018-01-11 00:56:21 +01:00
|
|
|
short_desc="Python2 package for creating, manipulating, and studying complex 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"
|
2018-01-27 03:35:18 +01:00
|
|
|
checksum=64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1
|
|
|
|
|
|
|
|
do_check() {
|
|
|
|
python3 setup.py test
|
|
|
|
}
|
2018-01-11 00:56:21 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-networkx_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="networkx"
|
2018-01-27 03:35:18 +01:00
|
|
|
depends="python3-decorator python3-setuptools"
|
2018-01-11 00:56:21 +01:00
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
}
|
|
|
|
}
|