archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-service-identity / trunk / PKGBUILD
blobe7de7941e66a7ba8134b92b320100b14230b0445
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-service-identity
4 pkgver=21.1.0
5 pkgrel=4
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 replaces=('python-service_identity')
15 source=("https://github.com/pyca/service-identity/archive/$pkgver/$pkgname-$pkgver.tar.gz")
16 sha512sums=('6375bc5e8329118b2beb163ffffecc1479839e4e98173576e4737deebcc4c057ac357315976d3f53a280defd4e2c1f6b74e9604ec1aa94144240c2fb4bf07461')
18 build() {
19   cd service-identity-$pkgver
20   python setup.py build
23 check() {
24   cd service-identity-$pkgver
25   python setup.py pytest
28 package() {
29   cd service-identity-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/