Date: Saturday, April 8, 2023 @ 12:57:01
Author: felixonmars
Revision: 1442360
archrelease: copy trunk to community-staging-any
Added:
python-werkzeug/repos/community-staging-any/
python-werkzeug/repos/community-staging-any/PKGBUILD
(from rev 1442358, python-werkzeug/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-werkzeug/repos/community-staging-any/PKGBUILD (from rev 1442358,
python-werkzeug/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 12:57:01 UTC (rev 1442360)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: Alexander Rødseth <[email protected]>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Dan Serban
+# Contributor: Richard Murri
+
+pkgname=python-werkzeug
+pkgver=2.2.3
+pkgrel=2
+pkgdesc='Swiss Army knife of Python web development'
+url='https://werkzeug.palletsprojects.com/'
+arch=('any')
+license=('custom:BSD')
+depends=('python-markupsafe')
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-timeout' 'python-pytest-xprocess'
'python-requests'
+ 'python-ephemeral-port-reserve' 'python-greenlet'
'python-watchdog'
+ 'python-cryptography')
+source=("https://github.com/pallets/werkzeug/archive/${pkgver}/$pkgname-$pkgver.tar.gz")
+sha512sums=('3968e663f67e41da5148a4aa1d8e047ffd88416fa8df665e359bbe87992e4e723e1c915eed59ae86b53dd18817e41cdcef059483bce7aa8ed7b388dd4add1482')
+
+build() {
+ cd "werkzeug-$pkgver"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "werkzeug-$pkgver"
+ PYTHONPATH="build/lib" pytest \
+ --deselect=tests/test_serving.py \
+ --deselect=tests/test_debug.py::test_basic \
+ --deselect=tests/middleware/test_http_proxy.py
+}
+
+package() {
+ cd "werkzeug-$pkgver"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm 644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: