Date: Wednesday, April 5, 2023 @ 17:06:47
  Author: felixonmars
Revision: 1437791

archrelease: copy trunk to community-staging-any

Added:
  python-typing_extensions/repos/community-staging-any/
  python-typing_extensions/repos/community-staging-any/PKGBUILD
    (from rev 1437790, python-typing_extensions/trunk/PKGBUILD)

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

Copied: python-typing_extensions/repos/community-staging-any/PKGBUILD (from rev 
1437790, python-typing_extensions/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 17:06:47 UTC (rev 1437791)
@@ -0,0 +1,44 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Michael Yeatts <[email protected]>
+
+pkgname=python-typing_extensions
+pkgver=4.5.0
+pkgrel=2
+pkgdesc='Backported and Experimental Type Hints for Python 3.7+'
+arch=(any)
+url=https://github.com/python/typing_extensions
+license=(custom)
+depends=(python)
+makedepends=(git python-build python-flit-core python-installer)
+checkdepends=(python-tests)
+provides=(python-typing-extensions)
+conflicts=(python-typing-extensions)
+source=("git+${url}.git#tag=${pkgver}")
+b2sums=(SKIP)
+
+build() {
+  cd typing_extensions
+
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd typing_extensions
+
+  python -m unittest discover src
+}
+
+package() {
+  cd typing_extensions
+
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s "${site_packages}"/typing_extensions-${pkgver}.dist-info/LICENSE \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to