mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-13 15:52:38 +02:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-nwdiag
|
|
_pkgname=nwdiag
|
|
pkgver=3.0.0
|
|
pkgrel=3
|
|
pkgdesc="Generate network-diagram image file from spec-text file"
|
|
url="https://pypi.org/project/nwdiag"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-funcparserlib py3-blockdiag py3-pillow"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-nwdiag" # for backwards compatibility
|
|
provides="py-nwdiag=$pkgver-r$pkgrel" # for backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/rackdiag/tests
|
|
}
|
|
|
|
sha512sums="
|
|
3443d2599c91c2e1a267172fe1c35ead18f733d4eebb7313597fdae3b8cac9cd8e0c2700750aef5b2a332851cc3e6a1942d3ffe165f55cdd68dc54430f0dd86f nwdiag-3.0.0.tar.gz
|
|
"
|