49 lines
1 KiB
Text
49 lines
1 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=py3-slack-sdk
|
|
_pyname="slack_sdk"
|
|
pkgver=3.21.3
|
|
pkgrel=0
|
|
arch="noarch"
|
|
pkgdesc="The Slack API Platform SDK for Python"
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
license="MIT"
|
|
depends="
|
|
py3-aiohttp
|
|
py3-aiodns
|
|
"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-installer
|
|
py3-wheel
|
|
py3-gpep517
|
|
"
|
|
checkdepends="
|
|
py3-flask
|
|
py3-flask-sockets
|
|
py3-moto
|
|
"
|
|
options="!check" # Missing checkdepend
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$builddir" pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7cf0e590163ce0e185ed361c0617319e7a7d132fca2fb5454aa14a7752c0fedba6948ce35fedca72cf31784e77b6d2e1ab51a319b193e1610486c5cab4032488 py3-slack-sdk-3.21.3.tar.gz
|
|
"
|