archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-service-identity / trunk / PKGBUILD
blob02a081984bb306d6c7d7cd805a0921fc8fdd5ccd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-service-identity
4 pkgver=21.1.0
5 pkgrel=3
6 pkgdesc="Service identity verification for pyOpenSSL"
7 arch=('any')
8 license=('MIT')
9 url="https://pypi.python.org/pypi/service_identity"
10 depends=('python-attrs' 'python-pyasn1-modules' 'python-pyasn1' 'python-cryptography' 'python-six')
11 makedepends=('python-setuptools' 'python-idna')
12 checkdepends=('python-pytest-runner')
13 optdepends=('python-idna: for Internationalized Domain Names support')
14 source=("https://github.com/pyca/service-identity/archive/$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('6375bc5e8329118b2beb163ffffecc1479839e4e98173576e4737deebcc4c057ac357315976d3f53a280defd4e2c1f6b74e9604ec1aa94144240c2fb4bf07461')
17 build() {
18   cd service-identity-$pkgver
19   python setup.py build
22 check() {
23   cd service-identity-$pkgver
24   python setup.py pytest
27 package() {
28   cd service-identity-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/