blob: 1d81fee7bcffdf8ed67369fc761dfc52c40cdbc0 (
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
54
55
56
57
58
59
60
|
# 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"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 1
}
check() {
python3 -m installer -d testenv \
dist/dns_lexicon-$pkgver-py3-none-any.whl
local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest -n $JOBS --ignore lexicon/tests/providers/test_localzone.py lexicon
}
package() {
python3 -m installer -d "$pkgdir" \
dist/dns_lexicon-$pkgver-py3-none-any.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/lexicon/tests
}
sha512sums="
2b989c5d0e383d7cea37dd526710ac3ec70c029737a24eea7dddaae5ce12edf5b63babcc166d84991bccdd52de8fef58c3a7b61aced798e63ce665f27cf2a857 py3-dns-lexicon-github-3.11.7.zip
"
|