mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-09 23:51:37 +01:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# 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.6
|
|
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="
|
|
d2966e1722eb53b4461f86fdbab99902fbe728b8874cf701b7b33e486406a30314ddf813df20ac0ffe6c5f524c05eb6750dff2c43ec306280225cbf10c2ecd81 py3-igraph-0.11.6.tar.gz
|
|
"
|