blob: 8089037a286368e4052f2f39baa3da8785325d99 (
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
39
40
41
42
43
44
45
46
47
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-protoletariat
_name=${pkgname#python-}
pkgver=3.3.10
pkgrel=1
pkgdesc="Python protocol buffers for the rest of us"
provides=(${pkgname})
conflicts=(${pkgname})
arch=('any')
url="https://github.com/cpcloud/protoletariat"
_pydeps=(
astunparse
click
protobuf
pytest
)
depends=('python'
"${_pydeps[@]/#/python-}")
makedepends=(
git
'python-poetry'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel')
optdepends=(
'python-grpcio-tools: Python protobuf generator for GRPC'
)
license=('Apache-2.0')
source=("${_name}::git+${url}.git#tag=$pkgver")
sha256sums=('9ba77b3b010bdc203f68937283a3871742076fbca77b4497390b0c01ae24cf63')
prepare() {
git -C "${srcdir}/${_name}" clean -dfx
}
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|