Date: Friday, April 7, 2023 @ 14:54:37
Author: felixonmars
Revision: 1441263
archrelease: copy trunk to community-staging-any
Added:
python-typeguard/repos/community-staging-any/
python-typeguard/repos/community-staging-any/PKGBUILD
(from rev 1441260, python-typeguard/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-typeguard/repos/community-staging-any/PKGBUILD (from rev
1441260, python-typeguard/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 14:54:37 UTC (rev 1441263)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-typeguard
+pkgver=3.0.2
+_commit=db7771024eb2f6eba03c3954f8abe0f03bded3c2
+pkgrel=2
+pkgdesc="Run-time type checker for Python"
+url="https://github.com/agronholm/typeguard"
+license=('MIT')
+arch=('any')
+depends=('python-typing_extensions')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
+checkdepends=('mypy' 'python-pytest')
+source=("git+https://github.com/agronholm/typeguard.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd typeguard
+ python -m build -nw
+}
+
+check() {
+ cd typeguard
+ # https://github.com/agronholm/typeguard/issues/176
+ PYTHONPATH="$PWD/build/lib" MYPYPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ cd typeguard
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}