[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Thu Sep 12 19:07:25 UTC 2019


    Date: Thursday, September 12, 2019 @ 19:07:24
  Author: anthraxx
Revision: 509767

addpkg: python-sphinx-autodoc-typehints 1.8.0-1

Added:
  python-sphinx-autodoc-typehints/
  python-sphinx-autodoc-typehints/repos/
  python-sphinx-autodoc-typehints/trunk/
  python-sphinx-autodoc-typehints/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: python-sphinx-autodoc-typehints/trunk/PKGBUILD
===================================================================
--- python-sphinx-autodoc-typehints/trunk/PKGBUILD	                        (rev 0)
+++ python-sphinx-autodoc-typehints/trunk/PKGBUILD	2019-09-12 19:07:24 UTC (rev 509767)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-sphinx-autodoc-typehints
+_pyname=${pkgname/python-/}
+_gitcommit=a1afbaba3067aee273ec0b14036e0f4ac44f79a9
+pkgver=1.8.0
+pkgrel=1
+pkgdesc='Type hints support for the Sphinx autodoc extension'
+url='https://github.com/agronholm/sphinx-autodoc-typehints'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-sphinx' 'python-typing_extensions')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("git+https://github.com/agronholm/sphinx-autodoc-typehints#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ${_pyname}
+  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  cd ${_pyname}
+  python setup.py build
+}
+
+check() {
+  cd ${_pyname}
+  PYTHONPATH=. py.test -k 'not test_sphinx_output'
+}
+
+package() {
+  cd ${_pyname}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list