blob: a5ea86d4a6af5894c6cacc60f97e1948145a3f90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: BenoƮt Allard <benoit.allard@gmx.de>
_name=python-betterproto
pkgname="$_name-git"
pkgver=r403.5666393
pkgrel=1
pkgdesc="Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC"
arch=('any')
url="https://github.com/danielgtaylor/python-betterproto"
license=('MIT')
makedepends=(git python-build python-installer python-wheel "python-poetry" "python-pytest" "python-pytest-asyncio" "python-grpcio-tools")
depends=("python-grpclib" "python-jinja" "python-dateutil" "python-isort")
optdepends=(
"python-black: support for protoc -- python_betterproto_out"
)
source=("git+https://github.com/danielgtaylor/${_name}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_name}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_name
python -m build --wheel --no-isolation
}
_check() {
cd $_name
export PYTHONPATH=src
python -m tests.generate -v
python -m pytest tests/
}
package() {
cd $_name
python -m installer --destdir="$pkgdir" dist/*.whl
}
|