# Contributor: a821 # Contributor: Tim Meusel # Contributor: Florian Pritz # Contributor: Christian Rebischke pkgname=python-pypuppetdb pkgver=3.2.0 pkgrel=1 pkgdesc='Library for working with the PuppetDB REST API' arch=('any') url='https://github.com/voxpupuli/pypuppetdb' license=('Apache') depends=('python-requests') makedepends=('python-setuptools' 'python-sphinx_rtd_theme' 'python-build' 'python-installer' 'python-wheel') checkdepends=('python-pytest-cov' 'python-mock' 'python-httpretty') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/voxpupuli/pypuppetdb/archive/refs/tags/${pkgver}.tar.gz") sha512sums=('a1f924c2fa63a915581c48a14512388e949d39ff3420b79a323b50949d2bf8fadcf6d92951480e0926d07dc18d82d1f46a35e80e812e5f0daa8f7cc0622c39de') build() { cd ${pkgname#python-}-${pkgver} python -m build --wheel --no-isolation cd docs PYTHONPATH=.. make man } check() { cd ${pkgname#python-}-${pkgver} pytest } package() { cd ${pkgname#python-}-${pkgver} python -m installer --destdir="$pkgdir" dist/*.whl rm -rf "${pkgdir}"/usr/requirements_for_tests install -D -m644 "docs/_build/man/pypuppetdb.1" "${pkgdir}/usr/share/man/man1/pypuppetdb.1" } # vim:set ts=2 sw=2 et: