blob: 0d3bd7baa4261159e51cb0c1be7cb42f574f8504 (
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
40
41
42
43
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-service_identity
_pkgname=service_identity
pkgver=14.0.0
pkgrel=0
pkgdesc="Service Identity Verification for pyOpenSSL"
url="https://service-identity.readthedocs.org/"
arch="noarch"
license="MIT"
depends="py-asn1 py-asn1-modules py-openssl py-characteristic"
depends_dev=""
makedepends="$depends_dev py-setuptools pytest"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python -Walways setup.py test
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums="cea0b0156d73b025ecef660fb51f0d9a service_identity-14.0.0.tar.gz"
sha256sums="3105a319a7c558490666694f599be0c377ad54824eefb404cde4ce49e74a4f5a service_identity-14.0.0.tar.gz"
sha512sums="d504ad388defb38a86ca82c8ff9582dbb664a929e4b4ee7f6732b2da5326c33b1764384a8d849972f83ae7800c775daf90c1f3fbc61b8d2c29294f44c7cd36d2 service_identity-14.0.0.tar.gz"
|