# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-tld
pkgver=0.13
pkgrel=2
pkgdesc="Extracts the top level domain (TLD) from the URL given"
url="https://pypi.org/project/tld"
arch="noarch"
license="MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-factory-boy"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/barseghyanartur/tld/archive/$pkgver.tar.gz"
options="!check" # TODO
builddir="$srcdir/tld-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# TODO: fix depndencies
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
87157ca2fc8977a96f6289269015bc5a90f3f033fb8ea96552eb8d00d05a346d8f3c61123a311803aa301c735a510a2c0986364f3b2ae4366e2c34aea15b538d  py3-tld-0.13.tar.gz
"
