blob: 36e25091412e320b02d35c9e5116013fa8bcfffb (
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
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Carl Smedstad <carsme@archlinux.org>
# Contributor: Tom Krizek <tkrizek@isc.org>
pkgname=python-dnspython-git
pkgver=2.1.0.r760.b2f09a92
pkgrel=1
pkgdesc="A DNS toolkit for Python"
arch=('any')
url="http://www.dnspython.org"
license=('ISC')
depends=('python')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
makedepends=(
'git'
'python-build'
'python-hatchling'
'python-installer'
'python-wheel'
)
checkdepends=('python-idna' 'python-cryptography' 'python-trio' 'python-pytest')
optdepends=(
'python-cryptography: DNSSEC support'
'python-requests-toolbelt: DoH support'
'python-idna: support for updated IDNA 2008'
'python-curio: async support'
'python-trio: async support'
'python-sniffio: async support'
)
source=("git+https://github.com/rthalley/dnspython.git")
sha256sums=('SKIP')
pkgver() {
cd dnspython
git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {
cd dnspython
python -m build --wheel --no-isolation
}
check() {
cd dnspython
pytest
}
package() {
cd dnspython
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|