# Contributor: Bart Ribbers # Maintainer: pkgname=py3-networkx pkgver=3.1 pkgrel=0 pkgdesc="Software for complex networks" url="https://networkx.github.io/" arch="noarch" license="BSD-3-Clause" depends=" 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-pytest-xdist py3-yaml xdg-utils " source="https://pypi.python.org/packages/source/n/networkx/networkx-$pkgver.tar.gz" builddir="$srcdir/networkx-$pkgver" options="!check" # needs updates foe new numpy 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 # 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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl find "$pkgdir" -type d -name tests -exec rm -r {} \+ } sha512sums=" 9d75ecd25020f83c650824e9449e1c53004c13089dccf7424b65787144dfe3d2f638fd5aca1c4a792b165598b44644fda45bf54c49b3af278ddec5e1f669c38e networkx-3.1.tar.gz "