summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40f523dbda7cf2edad6ed593cf8b8ad39e4bb65b (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
48
49
50
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>

_name=google-cloud-bigquery

pkgname=python-google-cloud-bigquery
pkgver=2.20.0
pkgrel=1
pkgdesc="Google BigQuery API client library"
arch=('any')
url="https://pypi.org/project/google-cloud-bigquery/"
license=('APACHE')
depends=(
  'python>=3.6'
  'python-google-api-core>=1.29.0'
  'python-google-cloud-core>=1.4.1'
  'python-google-resumable-media>=0.6.0'
  'python-grpcio'
  'python-packaging>=14.3'
  'python-proto-plus>=1.10.0'
  'python-protobuf>=3.12.0'
  'python-requests>=2.18.0'
)
makedepends=('python-setuptools')
optdepends=(
  'python-arrow>=1.0.0: for pyarrow support'
  'python-pandas>=0.23.0: for pandas support'
  'python-tqdm>=4.7.4: for tqdm support'
  'python-fastparquet: for fastparquet support'
  'python-snappy: for fastparquet support'
  'python-llvmlite: for fastparquet support'
)
options=(!emptydirs)
source=(
  "https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha256sums=(
  'ff728f9a4a64d6b4ec5beb7fd2f6ed550b49bfe2b8bb3755c00821716e0d1f91'
)

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
  install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}