archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-sphinx-argparse / trunk / PKGBUILD
blobcf72f16e64048b40cf986dee86859ad4c682b536
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=sphinx-argparse
4 _pypi_name=sphinx_argparse
5 pkgname=python-sphinx-argparse
6 pkgver=0.4.0
7 pkgrel=3
8 pkgdesc="Sphinx extension that automatically documents argparse commands and options"
9 arch=(any)
10 url="https://github.com/ashb/sphinx-argparse"
11 license=(MIT)
12 depends=(python-sphinx)
13 makedepends=(python-build python-installer python-poetry-core python-wheel)
14 checkdepends=(python-pytest)
15 optdepends=('python-commonmark: markdown support')
16 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_pypi_name-$pkgver.tar.gz)
17 sha512sums=('b96050da6c02f87c54f9dc9146bed955e99258df740b467575a2b3e9919fa8c4c6d30a736dab24360086bfc0d7d09c4bc7a818700af2c7846eed3a3b99053d65')
18 b2sums=('73118f56ff82d52f04066b9d500aebc77eb5a0fecd03fa69f382c0f2afc0cbffdd395da707cf37b59f039e93935f8d5c3fe0e0f7a2820d3b6509dd78b37b0d74')
20 build() {
21   cd $_pypi_name-$pkgver
22   python -m build --wheel --no-isolation
25 check() {
26   cd $_pypi_name-$pkgver
27   pytest -vv
30 package() {
31   cd $_pypi_name-$pkgver
32   python -m installer --destdir="$pkgdir" dist/*.whl
33   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
35 # vim:set ts=2 sw=2 et: