[arch-commits] Commit in python-tldextract/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 19:53:36 UTC 2020
Date: Monday, November 9, 2020 @ 19:53:36
Author: foutrelis
Revision: 748107
archrelease: copy trunk to community-staging-any
Added:
python-tldextract/repos/community-staging-any/
python-tldextract/repos/community-staging-any/PKGBUILD
(from rev 748105, python-tldextract/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-tldextract/repos/community-staging-any/PKGBUILD (from rev 748105, python-tldextract/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:53:36 UTC (rev 748107)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tldextract
+pkgver=3.0.2
+pkgrel=2
+pkgdesc="Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List"
+arch=('any')
+url="https://github.com/john-kurkowski/tldextract"
+license=('BSD')
+depends=('python-idna' 'python-requests' 'python-requests-file' 'python-filelock')
+makedepends=('python-setuptools-scm' 'python-pip')
+checkdepends=('python-pytest' 'python-pytest-mock' 'python-pytest-pylint' 'python-responses')
+source=("https://pypi.io/packages/source/t/tldextract/tldextract-$pkgver.tar.gz")
+sha512sums=('bd874250557b7d41f59e1ba89ada2f496b695e9b4fe572bc30e0557cbf627875fc3a5a9b799666a075b9f952963d0ec594d9d8283083c7a89ed632f00c188750')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd tldextract-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd tldextract-$pkgver
+ # tldextract/_version.py is generated by setuptools-scm, and will fail pylint here.
+ python -m pytest --ignore build --ignore tldextract/_version.py
+}
+
+package() {
+ cd tldextract-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list