blob: 9c3dae5a387271229b9c31d7a0a8b163731e1b37 (
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
|
# Contributor: Marcus Hoffmann <bubu@bubu1.eu>
_pkgname=google_cloud_translate
pkgname=python-google-cloud-translate
pkgver=3.27.0
pkgrel=1
pkgdesc="Google Cloud Translation API client library"
url="https://pypi.org/project/google-cloud-translate/"
depends=(
'python-google-api-core'
'python-google-auth'
'python-google-cloud-core' # AUR
'python-grpc-google-iam-v1' # AUR
'python-proto-plus' # AUR
'python-protobuf'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
license=('Apache-2.0')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('2ae78ef1aa8dbb5ec9767a08eabce34fda7bb45a07ba67ae6e0ead8cfd5f95f7')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir/" dist/*.whl
}
|