aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-07-29 16:08:45 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-07-29 16:59:18 +0200
commit3af008e6d6ebf8eab9b779e015f954d1e1284848 (patch)
tree03af7518c2f0cc30a59383241c6ee6db0645fd7b
parentf98b1c6ce8545b863389322c51d6ce7b6ba330af (diff)
downloadaports-3af008e6d6ebf8eab9b779e015f954d1e1284848.tar.bz2
aports-3af008e6d6ebf8eab9b779e015f954d1e1284848.tar.xz
main/py-jwt: upgrade to 1.6.4 and fix check
-rw-r--r--main/py-jwt/APKBUILD20
-rw-r--r--main/py-jwt/no-cov-report.patch12
2 files changed, 24 insertions, 8 deletions
diff --git a/main/py-jwt/APKBUILD b/main/py-jwt/APKBUILD
index b50697f4cf..432953327b 100644
--- a/main/py-jwt/APKBUILD
+++ b/main/py-jwt/APKBUILD
@@ -1,16 +1,19 @@
# Maintainer:
pkgname=py-jwt
_pkgname=PyJWT
-pkgver=1.5.0
-pkgrel=1
+pkgver=1.6.4
+pkgrel=0
pkgdesc="Python JSON Web Token implementation"
-url="https://github.com/progrium/pyjwt"
+url="https://github.com/jpadilla/pyjwt"
arch="noarch"
license="MIT"
depends=""
+checkdepends="pytest"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="$pkgname-cli py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ no-cov-report.patch
+ "
builddir="$srcdir/$_pkgname-$pkgver"
build() {
@@ -21,8 +24,8 @@ build() {
check() {
cd "$builddir"
- python2 setup.py check
- python3 setup.py check
+ python2 -m pytest .
+ python3 -m pytest .
}
package() {
@@ -33,7 +36,7 @@ package() {
cli() {
pkgdesc="$pkgdesc (CLI utility)"
- depends="py3-jwt"
+ depends="py3-jwt=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
@@ -59,4 +62,5 @@ _py() {
mv "$pkgdir"$libpath "$subpkgdir"${libpath%/*}
}
-sha512sums="6a811933fc167a5b79a8e0c3cd95154f80e115d50795b4b4593abd95922ff330649b9f6cd8698191c3fb35b27b1b6870702c835eec28306b5349ef8d8d836d04 PyJWT-1.5.0.tar.gz"
+sha512sums="28c448d473f0409d11c2a97bef9f878800a78691250f55a46d79009b09faab0ac179133c4d4795ed9910dd7176adc9d6912189a5b4938f27ae441308e98d5e11 PyJWT-1.6.4.tar.gz
+886877c4e40005d254abf6f00389e7e69e1a781119c29da7632e3f475b526e15b2387ab1bc5bade07234932c3a7396c06298540bdd1596a79a4a5e62b64517fc no-cov-report.patch"
diff --git a/main/py-jwt/no-cov-report.patch b/main/py-jwt/no-cov-report.patch
new file mode 100644
index 0000000000..9efb3d2219
--- /dev/null
+++ b/main/py-jwt/no-cov-report.patch
@@ -0,0 +1,12 @@
+Avoid installing additional test dependencies.
+
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -8,7 +8,6 @@
+ universal = 1
+
+ [tool:pytest]
+-addopts = --cov-report term-missing --cov-config=.coveragerc --cov .
+
+ [aliases]
+ test = pytest