ayaports/backports/py3-docker-py/APKBUILD

43 lines
1 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-docker-py
pkgver=6.1.3
pkgrel=0
pkgdesc="Python library for the Docker Engine API"
url="https://github.com/docker/docker-py"
arch="noarch"
license="Apache-2.0"
options="!check" # no docker avail
depends="
py3-packaging
py3-requests
py3-urllib3
py3-websocket-client
"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz"
builddir="$srcdir/docker-py-$pkgver"
provides="docker-py=$pkgver-r$pkgrel"
replaces="docker-py"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer --destdir="$pkgdir" .dist/*.whl
}
sha512sums="
ba6ade2487afb8f68606b7d78c0f0dc83ffde622444a9598a5c647d0176695171040c5d1115fb8db6d97cb062a24d552d043274a56923b0eae0f64d98cb92c30 py3-docker-py-6.1.3.tar.gz
"