blob: c7e8c766b98e050fc06e3b4a3379f35d7f988b94 (
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
|
# Maintainer: Brody <archfan at brodix dot de>
_pyname=google-cloud-core
pkgname=python-google-cloud-core
pkgver=2.4.1
pkgrel=3
pkgdesc='Google Cloud API client core library'
url=https://github.com/googleapis/python-cloud-core
arch=(any)
license=(Apache-2.0)
depends=(
python
python-google-api-core
python-google-auth
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
optdepends=('python-grpcio: for grpc support')
changelog=CHANGELOG.md
source=(${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz)
b2sums=('7c92684114b2977035b93758876ee3c4373c98e80a6db7e6031c75ae1b6276a109e6fcae5a21811a3652b9344b681fa0e38383f0f5d5ca1d6d9a4f1d94b43e8e')
build() {
cd ${_pyname}-${pkgver}
python -m build \
--wheel \
--no-isolation
}
package() {
cd ${_pyname}-${pkgver}
python -m installer \
--destdir="${pkgdir}" \
dist/*.whl
install -Dm644 -t "${pkgdir}"/usr/share/doc/${pkgname} README.rst
install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} LICENSE
}
# vim: ts=2 sw=2 et:
|