diff options
Diffstat (limited to 'community/py3-networkx/APKBUILD')
-rw-r--r-- | community/py3-networkx/APKBUILD | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/community/py3-networkx/APKBUILD b/community/py3-networkx/APKBUILD index 66a9fee3f15..4d39ed42a61 100644 --- a/community/py3-networkx/APKBUILD +++ b/community/py3-networkx/APKBUILD @@ -1,49 +1,67 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> -# Maintainer: Bart Ribbers <bribbers@disroot.org> +# Maintainer: pkgname=py3-networkx -pkgver=2.6.3 -pkgrel=0 +pkgver=3.2.1 +pkgrel=1 pkgdesc="Software for complex networks" -url="https://networkx.github.io/" -arch="noarch !mips64" +url="https://networkx.org/" +arch="noarch" license="BSD-3-Clause" depends=" - py3-decorator - python3 - " -makedepends="py3-setuptools" -subpackages="$pkgname-doc" -checkdepends=" - xdg-utils - py3-lxml py3-matplotlib py3-numpy py3-pandas + py3-scipy + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +subpackages="$pkgname-doc $pkgname-pyc" +checkdepends=" + graphviz + py3-lxml py3-pydot py3-pygraphviz py3-pytest - py3-scipy + py3-pytest-xdist py3-yaml - graphviz + xdg-utils " source="https://pypi.python.org/packages/source/n/networkx/networkx-$pkgver.tar.gz" builddir="$srcdir/networkx-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + # Broken with graphviz - pytest \ + # travellingsalesman: + # https://github.com/networkx/networkx/issues/5913 + .testenv/bin/python3 -m pytest -n auto \ --ignore networkx/drawing/tests/test_agraph.py \ - --ignore networkx/drawing/tests/test_pydot.py + --ignore networkx/algorithms/approximation/tests/test_traveling_salesman.py \ + --ignore networkx/linalg/tests/test_algebraic_connectivity.py \ + -k "not test_connected_raise" } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + + find "$pkgdir" -type d -name tests -exec rm -r {} \+ + + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/doc/$pkgname/ + cp -a examples "$pkgdir"/usr/share/doc/$pkgname/ } sha512sums=" -709b5126039c4b34a9b2ed60723e8bab3f591203f3ae8d87474e0f49f52b94b9c15568c78cc9e05e2bf997bc65a6177762bc41b0a44093ee59f6eaa0087d0f34 networkx-2.6.3.tar.gz +579c54a4a016617f5260df01b821c3906c4f289e80ae7bd618c0ebb9e05ebe806e71f1f660e3012531d04572ac4e6670aa73117ed26da8248fbb8ef7228b5803 networkx-3.2.1.tar.gz " |