mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 21:51:34 +02:00
38 lines
1007 B
Plaintext
38 lines
1007 B
Plaintext
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-tldextract
|
|
_pyname=tldextract
|
|
pkgver=3.2.1
|
|
pkgrel=0
|
|
pkgdesc="Accurately separate the TLD from the registered domain and subdomains of a URL"
|
|
url="https://github.com/john-kurkowski/tldextract"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
python3
|
|
py3-idna
|
|
py3-requests
|
|
py3-requests-file
|
|
py3-filelock
|
|
"
|
|
makedepends="py3-setuptools py3-setuptools_scm"
|
|
checkdepends="py3-pytest py3-pytest-mock py3-responses"
|
|
source="$_pyname-$pkgver.tar.gz::https://github.com/john-kurkowski/tldextract/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
sha512sums="
|
|
1d5248fabccec2d5a3f1cf35836ccfae5a879911d4ccc9cb59f9d48b35cd1c3f05d885f37f0e13ec8bd962c8eb1da02b6766262ec323843bc44b6b0cf171e349 tldextract-3.2.1.tar.gz
|
|
"
|