APKBUILD 969 Bytes
Newer Older
1
2
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
prspkt's avatar
prspkt committed
3
4
pkgname=py3-s3transfer
_pkgname=s3transfer
5
6
pkgver=0.4.1
pkgrel=0
7
8
9
pkgdesc="Amazon S3 Transfer Manager for Python"
url="https://github.com/boto/s3transfer"
arch="noarch"
10
license="Apache-2.0"
11
depends="py3-botocore<2.0.0"
prspkt's avatar
prspkt committed
12
makedepends="py3-setuptools"
13
checkdepends="py3-pytest py3-pytest-mock"
14
source="$_pkgname-$pkgver.tar.gz::https://github.com/boto/$_pkgname/archive/$pkgver.tar.gz"
15
builddir="$srcdir/$_pkgname-$pkgver"
16

prspkt's avatar
prspkt committed
17
18
19
replaces=py-s3transfer # Backwards compatibility
provides=py-s3transfer=$pkgver-r$pkgrel # Backwards compatibility

20
build() {
21
22
23
24
	python3 setup.py build
}

check() {
25
	pytest tests/unit tests/functional
26
27
28
}

package() {
prspkt's avatar
prspkt committed
29
	python3 setup.py install --prefix=/usr --root="$pkgdir"
30
31
}

32
sha512sums="f3215e8c5aee59d635e919249d791fdde80de0772ad4a2e62112412f62d23cc7c6080aee4f3c12470f404b0cb882876c5e6ee45e6d9d1f1e9778deeb236c2f2b  s3transfer-0.4.1.tar.gz"