Date: Wednesday, March 15, 2023 @ 23:50:04
Author: felixonmars
Revision: 1420975
archrelease: copy trunk to community-testing-any
Added:
python-typeguard/repos/community-testing-any/
python-typeguard/repos/community-testing-any/PKGBUILD
(from rev 1420974, python-typeguard/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-typeguard/repos/community-testing-any/PKGBUILD (from rev
1420974, python-typeguard/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2023-03-15 23:50:04 UTC (rev 1420975)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-typeguard
+pkgver=3.0.0
+_commit=f54e1db919c66c45398425c0d6b25cb19383d441
+pkgrel=1
+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/
+}