mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-12 09:12:36 +02:00
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-param
|
|
pkgver=2.0.1
|
|
pkgrel=0
|
|
pkgdesc="Make your Python code clearer and more reliable by declaring Parameters"
|
|
url="https://github.com/holoviz/param"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs py3-wheel"
|
|
checkdepends="py3-pytest-xdist py3-pytest-asyncio py3-pytest-cov py3-flake8"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/holoviz/param/archive/v$pkgver/param-$pkgver.tar.gz"
|
|
builddir="$srcdir/param-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
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 -k 'not testparameterizedobject and not testjsonserialization'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
|
|
install -Dm644 ./*.md -t "$pkgdir"/usr/share/doc/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
4216e9aa77ee6456822ac169fae52ce39643c0d4247fc82dc2813afdaf6644b3d3a0f225189e94cb02ead184cfea95c2373510f772e817f869b64c84e3309f1c py3-param-2.0.1.tar.gz
|
|
"
|