blob: d8a901651dc317a209a22930517fe896df3c4d35 (
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
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-idna
_pkgname=idna
pkgver=3.4
pkgrel=3
pkgdesc="IDNA 2008 and UTS #46 for Python3"
url="https://github.com/kjd/idna"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="
py3-gpep517
py3-flit-core
py3-installer
py3-wheel
"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-idna" # Backwards compatibility
provides="py-idna=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 1
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/$_pkgname-$pkgver-py3-none-any.whl
}
sha512sums="
0fc174ef91061e87cf31b7bc2ff7d1cb12167ece10f030fc3820bf27555e9fa498221161e3a0c272635013f4c771fc0e3855f8d968e0146fb5d93f81699f6bce idna-3.4.tar.gz
"
|