aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-dns-lexicon/APKBUILD
blob: 24c3f0c123df45a70dae1f7ac8077b6955bc2023 (plain) (tree)
1
2
3
4
5


                                                   
            
        















































                                                                                                                         
            
                                                                                                                                                              
 
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-dns-lexicon
pkgver=3.8.0
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="
72c7ec2f9bfb54f082c7ce406ab9fd372bc96696b4c1f3ed17f93ed8a6560b8ac02335e245217fc018ad707c1b7984470050d7ad1399b78748b89ab6a28a8625  py3-dns-lexicon-3.8.0.tar.gz
"