mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-pymsteams
|
|
pkgver=0.2.5
|
|
pkgrel=0
|
|
pkgdesc="Format messages and post to Microsoft Teams."
|
|
url="https://github.com/rveachkc/pymsteams"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest py3-requests py3-py py3-pluggy"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rveachkc/pymsteams/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir"/${pkgname/py3-/}-$pkgver
|
|
# httpstat.us is down
|
|
options="!check"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
export MS_TEAMS_WEBHOOK="https://localhost"
|
|
.testenv/bin/python3 -m pytest -v -k "not test_message_size"
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
448ac84280313112470ce2d2ccc44e37952c0d28900772bc6bbb77f6aa5fbf87dd05e57f06596fd04e7c1294516cf172b440f65ea8752631b730d58d6f600d17 py3-pymsteams-0.2.5.tar.gz
|
|
"
|