mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			989 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			989 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Eivind Uggedal <eu@eju.no>
 | |
| # Maintainer: Michał Polański <michal@polanski.me>
 | |
| pkgname=py3-jwt
 | |
| pkgver=2.6.0
 | |
| pkgrel=2
 | |
| pkgdesc="Python3 JSON Web Token implementation"
 | |
| url="https://github.com/jpadilla/pyjwt"
 | |
| license="MIT"
 | |
| arch="noarch"
 | |
| depends="python3"
 | |
| makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
 | |
| checkdepends="py3-pytest"
 | |
| source="https://github.com/jpadilla/pyjwt/archive/$pkgver/py3-jwt-$pkgver.tar.gz"
 | |
| builddir="$srcdir/pyjwt-$pkgver"
 | |
| 
 | |
| replaces="py-jwt" # Backwards compatibility
 | |
| provides="py-jwt=$pkgver-r$pkgrel" # Backwards compatibility
 | |
| 
 | |
| # secfixes:
 | |
| #   2.4.0-r0:
 | |
| #     - CVE-2022-29217
 | |
| 
 | |
| build() {
 | |
| 	gpep517 build-wheel \
 | |
| 		--wheel-dir dist \
 | |
| 		--output-fd 3 3>&1 >&2
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	pytest
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer -d "$pkgdir" \
 | |
| 		dist/PyJWT-$pkgver-py3-none-any.whl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 7b3d2aa5a12f51fb6b1137f939cfe6a08519b4d5b83f2c058dc31741e3ec6d7011844c7b426aa44aacf6570f3907a027ca1fe989a0c232e285e158a217f95557  py3-jwt-2.6.0.tar.gz
 | |
| "
 |