aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-service_identity/APKBUILD
blob: f6534fe2e98360572344fc70dee2ff5b7f24ce01 (plain) (tree)










































                                                                                                                                                                             
# 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://pypi.python.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"