# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-s3transfer
_pkgname=s3transfer
pkgver=0.10.1
pkgrel=0
pkgdesc="Amazon S3 Transfer Manager for Python"
url="https://github.com/boto/s3transfer"
arch="noarch"
license="Apache-2.0"
depends="py3-botocore"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-mock"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/boto/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-s3transfer # Backwards compatibility
provides=py-s3transfer=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest tests/unit tests/functional
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
20f5d2a21ef8e3427e1977a15f4e5ca179872443e396444a78287edea24a95bb2742ecec7fdceb13d4b13e0c0482bfe5d732a516d99cb6d67843a84cc55269d0  s3transfer-0.10.1.tar.gz
"
