mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-dns-lexicon
|
|
pkgver=3.11.7
|
|
pkgrel=1
|
|
pkgdesc="Manipulate DNS records on various DNS providers in a standardized/agnostic way"
|
|
url="https://github.com/AnalogJ/lexicon"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-beautifulsoup4
|
|
py3-cryptography
|
|
py3-future
|
|
py3-requests
|
|
py3-tldextract
|
|
py3-yaml
|
|
"
|
|
makedepends="py3-gpep517 py3-poetry-core"
|
|
_providerdepends="
|
|
py3-boto3
|
|
py3-localzone
|
|
py3-oci
|
|
py3-softlayer
|
|
py3-softlayer-zeep
|
|
py3-xmltodict
|
|
"
|
|
checkdepends="
|
|
py3-filelock
|
|
py3-pytest
|
|
py3-pytest-mock
|
|
py3-pytest-xdist
|
|
py3-requests-file
|
|
py3-vcrpy
|
|
$_providerdepends
|
|
"
|
|
source="$pkgname-github-$pkgver.zip::https://github.com/AnalogJ/lexicon/archive/refs/tags/v$pkgver.zip"
|
|
builddir="$srcdir/lexicon-$pkgver"
|
|
options="!check" # FileNotFoundError: [Errno 2] No such file or directory: 'oci_api_key.pem'
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest -n $JOBS --ignore lexicon/tests/providers/test_localzone.py lexicon
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" dist/*.whl
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/lexicon/tests
|
|
}
|
|
|
|
sha512sums="
|
|
2b989c5d0e383d7cea37dd526710ac3ec70c029737a24eea7dddaae5ce12edf5b63babcc166d84991bccdd52de8fef58c3a7b61aced798e63ce665f27cf2a857 py3-dns-lexicon-github-3.11.7.zip
|
|
"
|