1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-docker-py/APKBUILD
psykose b790199201 community/py3-docker-py: add back replaces=, cleanup depends, fix version
setuptools_scm is needed for the version to not be 0.0.0

replaces is needed because the package was renamed

most depends are not used anymore
2023-02-09 18:19:10 +01:00

42 lines
1 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-docker-py
pkgver=6.0.1
pkgrel=1
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
"
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="
86d15c612ce8aeab44559eee476d11f80b41f18c52a77029c5d4ce465ce9ea8bcad0f057c68964318d0d542601e9b5cbdd1297e9c4de0c437bb09d680d8bc8cb py3-docker-py-6.0.1.tar.gz
"