psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

53 lines
1.2 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-networkx
pkgver=2.8.8
pkgrel=1
pkgdesc="Software for complex networks"
url="https://networkx.github.io/"
arch="noarch"
license="BSD-3-Clause"
depends="
python3
"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
checkdepends="
xdg-utils
py3-lxml
py3-matplotlib
py3-numpy
py3-pandas
py3-pydot
py3-pygraphviz
py3-pytest
py3-pytest-xdist
py3-scipy
py3-yaml
graphviz
"
source="https://pypi.python.org/packages/source/n/networkx/networkx-$pkgver.tar.gz"
builddir="$srcdir/networkx-$pkgver"
build() {
python3 setup.py build
}
check() {
# Broken with graphviz
# travellingsalesman:
# https://github.com/networkx/networkx/issues/5913
pytest -n $JOBS \
--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 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
c698ed2dcc4221662af585940cf5d6ce1ad97b6b8f6d84348ff1d6b233eb69a36f5fba362bc4bb3a08ec8716434690b52b1d66dc4122edb0f420eaa10023d9d4 networkx-2.8.8.tar.gz
"