aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-networkx/APKBUILD
blob: 600201de4c9642970cecbf48a8ef2709a943c896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-networkx
pkgver=2.4
pkgrel=0
pkgdesc="Software for complex networks"
url="https://networkx.github.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-decorator"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
checkdepends="py3-pytest py3-pygraphviz py3-pydot py3-numpy py3-scipy py3-yaml py3-pandas py3-matplotlib py3-lxml"
source="https://pypi.python.org/packages/source/n/networkx/networkx-$pkgver.tar.gz
	fix-test_numpy_type-under-python3.8.patch
	"
options="!check" # Broken https://github.com/networkx/networkx/issues/3942
builddir="$srcdir/networkx-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="38eabef56e3667b7fa85206ae01a0a8f5c71bfa2f324bc2490c433cb973508a03955183a0c58ae40390f86d6a4741135cdb426c4c15e53e2f123072f0cac1b89  networkx-2.4.tar.gz
8b673817a43aa194653cbfaa1754c81ddf4d9c1918e540db38133ed9c74e573d8dd7b2e0e3d626bb93b1ccf5a9d8f3c237c102e1b3302c4199c2bd0123905e77  fix-test_numpy_type-under-python3.8.patch"