2022-12-27 20:40:33 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
_pyname=docker
|
|
|
|
pkgname="py3-$_pyname"
|
|
|
|
pkgver=6.0.1
|
2023-01-12 18:48:03 +00:00
|
|
|
pkgrel=1
|
2023-05-07 22:41:06 +00:00
|
|
|
arch="!armv7 noarch"
|
2022-12-27 20:40:33 +00:00
|
|
|
pkgdesc="A Python library for the Docker Engine API."
|
|
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
|
|
license="Apache-2.0"
|
|
|
|
depends="py3-packaging py3-requests py3-urllib3 py3-websocket-client py3-paramiko"
|
|
|
|
makedepends="py3-build py3-installer py3-setuptools py3-setuptools_scm py3-wheel"
|
|
|
|
checkdepends="py3-pytest py3-flake8 py3-coverage py3-pytest-cov py3-pytest-timeout"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
|
|
|
|
|
|
prepare() {
|
2023-03-31 20:26:25 +00:00
|
|
|
default_prepare
|
2022-12-27 20:40:33 +00:00
|
|
|
sed -i 's/==.*$//' test-requirements.txt requirements.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
2023-01-12 18:48:03 +00:00
|
|
|
python3 -m build --wheel --no-isolation
|
2022-12-27 20:40:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
py.test --cov=docker tests/unit || true
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-12 18:48:03 +00:00
|
|
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
2022-12-27 20:40:33 +00:00
|
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
|
|
1a598396ac96a7f63af681c8f0f8b8632b1049a3fa66fd595f8cf3460484826bdbbe83ed378412f65e2fe9ae0b36976dfddbee5c206ce36bd742c3be2ff56d94 py3-docker-6.0.1.tar.gz
|
|
|
|
"
|