Date: Saturday, September 3, 2022 @ 19:00:29 Author: ffy00 Revision: 1292687
archrelease: copy trunk to community-any Added: python-sphinx-pytest/repos/community-any/ python-sphinx-pytest/repos/community-any/PKGBUILD (from rev 1292686, python-sphinx-pytest/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: python-sphinx-pytest/repos/community-any/PKGBUILD (from rev 1292686, python-sphinx-pytest/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2022-09-03 19:00:29 UTC (rev 1292687) @@ -0,0 +1,36 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> + +_pkgname=sphinx-pytest +pkgname=python-$_pkgname +pkgver=0.0.4 +pkgrel=1 +pkgdesc='Helpful pytest fixtures for sphinx extensions' +arch=('any') +url='https://github.com/chrisjsewell/sphinx-pytest' +license=('MIT') +depends=('python-sphinx' 'python-pytest') +makedepends=('python-build' 'python-installer' 'python-flit-core' 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('25bf3fafddf02aed8b2478dc2beafa251027652d03f31bbac67eb98913e359f9497a9018561aff0fdaf568ece4bcfa15705dcfa2fd3734f4db6c613b24d6a568') + +build() { + cd $_pkgname-$pkgver + + python -m build -nw +} + +#check() { +# cd $_pkgname-$pkgver +# +# PYTHONPATH=src python -m pytest +#} + +package() { + cd $_pkgname-$pkgver + + python -m installer -d "$pkgdir" dist/*.whl + + install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: