Date: Sunday, April 9, 2023 @ 04:17:34
  Author: felixonmars
Revision: 1443119

archrelease: copy trunk to community-staging-any

Added:
  python-flask-compress/repos/community-staging-any/
  python-flask-compress/repos/community-staging-any/PKGBUILD
    (from rev 1443117, python-flask-compress/trunk/PKGBUILD)

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

Copied: python-flask-compress/repos/community-staging-any/PKGBUILD (from rev 
1443117, python-flask-compress/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 04:17:34 UTC (rev 1443119)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Cedric Girard <[email protected]>
+
+_pyname=Flask-Compress
+pkgname=python-flask-compress
+pkgver=1.13
+pkgrel=2
+pkgdesc='Compress responses in your Flask app'
+url='http://pypi.python.org/pypi/Flask-Compress/'
+arch=('any')
+license=('BSD')
+depends=('python' 'python-flask' 'python-brotli')
+makedepends=('python-setuptools' 'python-setuptools-scm' 'python-build' 
'python-installer' 'python-wheel')
+checkdepends=('python-pytest')
+source=(https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz)
+sha256sums=('ee96f18bf9b00f2deb4e3406ca4a05093aa80e2ef0578525a3b4d32ecdff129d')
+sha512sums=('e910971f94966f14d4657f7fa1c92a4e73ca7afd08959ed5d5694228851f06e614873f3202d19c6a06be2c277136f097d88eb578773dd7b5e9130456c9828ed0')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  PYTHONPATH="build/lib" pytest
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to