[arch-commits] Commit in python-flask-jwt/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:09:21 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:09:21
  Author: felixonmars
Revision: 749326

archrelease: copy trunk to community-staging-any

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

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

Copied: python-flask-jwt/repos/community-staging-any/PKGBUILD (from rev 749325, python-flask-jwt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:09:21 UTC (rev 749326)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-jwt
+pkgver=0.3.2
+pkgrel=6
+pkgdesc="JWT token authentication for Flask apps"
+url="https://github.com/mattupstate/flask-jwt"
+license=('MIT')
+arch=('any')
+depends=('python-flask' 'python-pyjwt')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mattupstate/flask-jwt/archive/$pkgver.tar.gz")
+sha512sums=('7c115ff4964da9a36303ac502dea98cd847abc3c1d45cd0be09b82ec761ee054d7ef97e25fd669112ab29dbfca00b4563914155ab1c8da4fc3d32f0063128b26')
+
+prepare() {
+  # Too old options
+  sed -i 's/,<1.5.0//' flask-jwt-$pkgver/requirements.txt
+  echo > flask-jwt-$pkgver/requirements-dev.txt
+  rm flask-jwt-$pkgver/setup.cfg
+}
+
+build() {
+  cd flask-jwt-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd flask-jwt-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd flask-jwt-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list