[arch-commits] Commit in python-tldextract/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 21:12:18 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:12:18
  Author: felixonmars
Revision: 1058839

archrelease: copy trunk to community-staging-any

Added:
  python-tldextract/repos/community-staging-any/
  python-tldextract/repos/community-staging-any/PKGBUILD
    (from rev 1058836, python-tldextract/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-tldextract/repos/community-staging-any/PKGBUILD (from rev 1058836, python-tldextract/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:12:18 UTC (rev 1058839)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tldextract
+pkgver=3.1.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'
+              'python-isort')
+source=("https://pypi.io/packages/source/t/tldextract/tldextract-$pkgver.tar.gz")
+sha512sums=('2c2340a9142d49aa7c0db71b5a7fb1a63e19354a5da8edd7de923e55c8ec03d8a8551f4710c66d6d1aece1d0d78701229ef5ed2ed49bcce44972b7b96747bd77')
+
+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