Date: Tuesday, April 11, 2023 @ 06:30:09
Author: polyzen
Revision: 1444627
archrelease: copy trunk to community-staging-any
Added:
python-sphinx-autodoc-typehints/repos/community-staging-any/
python-sphinx-autodoc-typehints/repos/community-staging-any/PKGBUILD
(from rev 1444626, python-sphinx-autodoc-typehints/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-sphinx-autodoc-typehints/repos/community-staging-any/PKGBUILD
(from rev 1444626, python-sphinx-autodoc-typehints/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-11 06:30:09 UTC (rev 1444627)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-sphinx-autodoc-typehints
+_pyname=${pkgname/python-/}
+pkgver=1.19.5
+pkgrel=3
+pkgdesc='Type hints support for the Sphinx autodoc extension'
+url='https://github.com/tox-dev/sphinx-autodoc-typehints'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-sphinx' 'python-typing_extensions')
+makedepends=('git' 'python-build' 'python-installer' 'python-hatchling'
'python-hatch-vcs')
+checkdepends=('python-pytest' 'python-sphobjinv' 'python-nptyping')
+source=("git+$url.git#tag=${pkgver}")
+sha512sums=('SKIP')
+
+build() {
+ cd ${_pyname}
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${_pyname}
+ PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+ cd ${_pyname}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: