aports/testing/py3-igraph/APKBUILD
2024-11-23 17:30:56 +00:00

49 lines
1.2 KiB
Text

# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-igraph
_pyname=python-igraph
pkgver=0.11.8
pkgrel=0
pkgdesc="Python interface for igraph"
url="https://github.com/igraph/python-igraph"
# s390x: libigraph-dev
arch="all !s390x"
license="GPL-2.0-only"
depends="py3-texttable"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="
libigraph-dev
py3-gpep517
py3-wheel
py3-setuptools
python3-dev
"
checkdepends="
py3-pillow
py3-pytest
"
subpackages="$pkgname-dev $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/igraph/python-igraph/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
IGRAPH_USE_PKG_CONFIG=yes \
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
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
dce673b5e0e231e7ee0071d8db131e58724ab99b225536f8bb0f29369c90d6adc0f62fa181c62811a559512cc25f8422420f070431d8a47729d114261cc39e3c py3-igraph-0.11.8.tar.gz
"