# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-characteristic _pkgname=characteristic pkgver=14.3.0 pkgrel=6 pkgdesc="Service identity verification for pyOpenSSL" url="https://characteristic.readthedocs.io/en/stable/" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-characteristic" # Backwards compatibility provides="py-characteristic=$pkgver-r$pkgrel" # Backwards compatibility prepare() { default_prepare # having only [pytest] errors out sed -i 's|pytest|tool:pytest|' setup.cfg } build() { python3 setup.py build } check() { py.test-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="e13a86f453cd3688a74188005b82a661a9c73d9f0408d9afe9e0575e69ffe87a5327f51e2c16a9c0a653b738e7c014d5aa08e353835f0aca7897714b7ae56e83 characteristic-14.3.0.tar.gz"