Commit 3af008e6 authored by Jakub Jirutka's avatar Jakub Jirutka

main/py-jwt: upgrade to 1.6.4 and fix check

parent f98b1c6c
# 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"
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment