blob: dddc7e365f44d14b5b16283163f417b547fecb77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-characteristic
_pkgname=characteristic
pkgver=14.3.0
pkgrel=5
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"
|