mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Oleg Titov <oleg.titov@gmail.com>
 | |
| # Maintainer: Oleg Titov <oleg.titov@gmail.com>
 | |
| pkgname=py3-python-jose
 | |
| pkgver=3.3.0
 | |
| pkgrel=2
 | |
| pkgdesc="A JOSE implementation in Python"
 | |
| url="https://github.com/mpdavis/python-jose/"
 | |
| arch="noarch"
 | |
| license="MIT"
 | |
| depends="python3"
 | |
| makedepends="py3-gpep517 py3-setuptools py3-wheel"
 | |
| checkdepends="py3-cryptography py3-pycryptodome py3-pytest-runner"
 | |
| subpackages="$pkgname-doc $pkgname-pyc"
 | |
| source="python-jose-$pkgver.tar.gz::https://github.com/mpdavis/python-jose/archive/refs/tags/$pkgver.tar.gz"
 | |
| builddir="$srcdir/python-jose-$pkgver"
 | |
| 
 | |
| build() {
 | |
| 	gpep517 build-wheel \
 | |
| 		--wheel-dir .dist \
 | |
| 		--output-fd 3 3>&1 >&2
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 -m venv --clear --without-pip --system-site-packages .testenv
 | |
| 	.testenv/bin/python3 -m installer .dist/*.whl
 | |
| 	.testenv/bin/python3 -m pytest
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python -m installer -d "$pkgdir" .dist/*.whl
 | |
| 
 | |
| 	install -vDm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| de7147cc6e12406d6e459c32829acae46395acba727c53e65bc05f4794ee3050eecd355e3ae2e87f4ebdbd871f53822eea08a10f25d7ca6088fc6128dc7d9637  python-jose-3.3.0.tar.gz
 | |
| "
 |