summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f56b2d56d280f4b8c331d8bd6073dd0729b4e4ac (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
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>

pkgname=python-idna_ssl
pkgver=1.1.0
pkgrel=6
pkgdesc="Patch ssl.match_hostname for Unicode(idna_ssl) domains support"
arch=('any')
license=('MIT')
url="https://github.com/aio-libs/idna_ssl"
depends=('python' 'python-idna')
makedepends=('python-setuptools')
checkdepends=('python-pytest-asyncio' 'python-aiohttp' 'python-pytest-cov')
source=("https://github.com/aio-libs/idna-ssl/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('01e58e9f32f7e02ef203edbd76e199916ea0b16d01a929ca2fb272d83988483c17e9c36e131f47bfba7f7b657bef9e2be222f81800716a5b87d5847c27cce34d')

build() {
  cd "$srcdir"/idna-ssl-$pkgver
  python setup.py build
}

check() {
  cd "$srcdir"/idna-ssl-$pkgver
  pytest
}

package() {
  cd idna-ssl-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}