blob: 96db8d9c199115c3b497b102db11ac5daef88738 (
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
|
# Maintainer: a821
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
pkgname=python-google-resumable-media
_pkg="google_resumable_media"
pkgver=2.7.2
pkgrel=1
pkgdesc="Utilities for Google Media Downloads and Resumable Uploads"
arch=('any')
url="https://github.com/googleapis/google-resumable-media-python"
license=('Apache-2.0')
depends=('python-google-crc32c')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
optdepends=(
'python-requests: for requests support'
'python-aiohttp: for aiohttp support'
'python-google-auth: for extra functionality')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkg::1}/$_pkg/$_pkg-$pkgver.tar.gz")
sha256sums=('5280aed4629f2b60b847b0d42f9857fd4935c11af266744df33d8074cae92fe0')
build() {
cd "$_pkg-$pkgver"
python -m build --wheel --no-isolation
}
# tests require preset credentials
package() {
cd "$_pkg-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dvm644 README.rst -t "${pkgdir}/usr/share/doc/$pkgname/"
}
|