aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dns-lexicon/APKBUILD
blob: 527b2600c0a3a41bac1b54849b348c91825d2176 (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
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-dns-lexicon
pkgver=3.6.1
pkgrel=0
pkgdesc="Manipulate DNS records on various DNS providers in a standardized/agnostic way"
options="!check" # Tests require GitHub tarball which has broken setup.py
url="https://github.com/AnalogJ/lexicon"
arch="noarch"
license="MIT"
depends="
	py3-tldextract
	py3-requests
	py3-yaml
	py3-future
	py3-cryptography
	py3-beautifulsoup4
	"
makedepends="py3-setuptools"
_providerdepends="
	py3-boto3
	py3-pynamecheap
	py3-transip
	py3-xmltodict
	py3-localzone
	py3-softlayer
	py3-zeep
	"
checkdepends="
	py3-filelock
	py3-pytest
	py3-pytest-mock
	py3-requests-file
	py3-vcrpy
	$_providerdepends
	"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/d/dns-lexicon/dns-lexicon-$pkgver.tar.gz"
builddir="$srcdir/dns-lexicon-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/lexicon/tests
}

sha512sums="
f142863e90c1dc260bfa9818c5b29d1db2d06f21f4f8fdfbfe9d209a8c0fb1975061650e725309cc0c32f31bb0bf2f8efe75ea30381c47e25cecf2b97887362a  py3-dns-lexicon-3.6.1.tar.gz
"