2022-03-01 07:44:01 +00:00

35 lines
1.1 KiB
Plaintext

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-kubernetes
_pkgname=kubernetes
pkgver=23.3.0
pkgrel=0
pkgdesc="Official Python client library for kubernetes"
url="https://github.com/kubernetes-client/python"
arch="noarch"
license="Apache-2.0"
depends="py3-certifi py3-dateutil py3-google-auth py3-requests
py3-requests-oauthlib py3-six py3-urllib3
py3-websocket-client py3-yaml"
makedepends="py3-setuptools"
checkdepends="pytest py3-mock"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/k/kubernetes/kubernetes-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
# deselected tests have missing modules
pytest --ignore=kubernetes/dynamic/test_client.py --ignore=kubernetes/dynamic/test_discovery.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
b4376ee7ccc40132ce0cd7cc39d8aaa43b0226e3653687344a3dff1bad37c64e9d85850527f96fd8b49b4cc8858178038c64f299e9ae5030cecaaaa9e2f290d6 py3-kubernetes-23.3.0.tar.gz
"