mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=py3-zulip
|
|
_pkgname=python-zulip-api
|
|
pkgver=0.9.0
|
|
pkgrel=1
|
|
pkgdesc="Zulip API bindings"
|
|
url="https://github.com/zulip/python-zulip-api/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-distro
|
|
py3-matrix-nio
|
|
py3-openssl
|
|
py3-requests
|
|
py3-typing-extensions
|
|
"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-runner"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/zulip/python-zulip-api/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver/zulip"
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
install -Dm0644 README.md -t "$pkgdir"/usr/share/doc/"$pkgname"
|
|
install -Dm0644 ../LICENSE -t "$pkgdir"/usr/share/doc/"$pkgname"
|
|
}
|
|
|
|
sha512sums="
|
|
31ec29b71d3801d11e0ba3dca57d03a20355cc7f85408cfc3835aa036652f7e94cb0da4df96069d37e309015e235b797f8b5e9796a7909434c7aee4e77b3e522 py3-zulip-0.9.0.tar.gz
|
|
"
|