testing/py3-slack-sdk: move from user
This commit is contained in:
parent
9097c1d4da
commit
2602322a8c
2 changed files with 49 additions and 28 deletions
49
testing/py3-slack-sdk/APKBUILD
Normal file
49
testing/py3-slack-sdk/APKBUILD
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
# 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
|
||||||
|
"
|
|
@ -1,28 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
pkgname=py3-slack-sdk
|
|
||||||
_pyname="slack_sdk"
|
|
||||||
pkgver=3.20.2
|
|
||||||
pkgrel=0
|
|
||||||
arch="noarch"
|
|
||||||
pkgdesc="The Slack API Platform SDK for Python"
|
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
|
||||||
license="MIT"
|
|
||||||
depends='python3 py3-aiohttp py3-aiodns'
|
|
||||||
makedepends='py3-setuptools'
|
|
||||||
checkdepends="py3-flask py3-flask-sockets py3-moto"
|
|
||||||
options="!check" # No testsuite
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
|
||||||
|
|
||||||
build() {
|
|
||||||
python3 setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
5eae6ecb8f04ebe8cb6ebda0111376e666a7c1b476c91b51b6a7daa3b7f38384c20350f65016fcdfc316f4a3ee97fd6ad26520a889fa89f9f6be27fe7f632418 py3-slack-sdk-3.20.2.tar.gz
|
|
||||||
"
|
|
Loading…
Reference in a new issue