2025-02-25 22:17:45 +00:00

38 lines
1.2 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-matplotlib-venn
_pkgorig=matplotlib-venn
pkgver=1.1.2
pkgrel=0
pkgdesc="Functions for plotting area-proportional two- and three-way Venn diagrams in matplotlib"
url="https://github.com/konstantint/matplotlib-venn"
arch="noarch"
license="MIT"
depends="python3 py3-matplotlib py3-scipy py3-shapely py3-numpy"
checkdepends="py3-pytest-xdist"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/konstantint/$_pkgorig/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
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
.testenv/bin/python3 -m pytest -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
3641f313a8355cf9d0e7862689547593c7f4387a63ed8e85fdb7e3937d4ef61bfcab6b9ff2319d7864303f2cb12b9e531e7103f5d70cd32f2c66c10d538a81a7 py3-matplotlib-venn-1.1.2.tar.gz
"