mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
37 lines
1 KiB
Text
37 lines
1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-dnslib
|
|
_pkgname=dnslib
|
|
pkgver=0.9.20
|
|
pkgrel=0
|
|
pkgdesc="simple library to encode/decode DNS wire-format packets"
|
|
url="https://github.com/paulc/dnslib"
|
|
arch="noarch"
|
|
license="BSD-2-Clause"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces=py-dnslib # Backwards compatibility
|
|
provides=py-dnslib=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
# secfixes:
|
|
# 0.9.19-r0:
|
|
# - CVE-2022-22846
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" python3 dnslib/test_decode.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
e44c7ea11f474cbc28a99a21931ec55a091e71a2a1ee5527bf58825aa72598a35c6de090e632bd49c5806583c2b3284e911431b209c37b0f49a4bcd15690ae1a dnslib-0.9.20.tar.gz
|
|
"
|