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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 21:54:40 UTC 2021


    Date: Thursday, December 2, 2021 @ 21:54:39
  Author: felixonmars
Revision: 1062747

archrelease: copy trunk to community-staging-any

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

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

Copied: python-parsel/repos/community-staging-any/PKGBUILD (from rev 1062744, python-parsel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 21:54:39 UTC (rev 1062747)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parsel
+pkgver=1.6.0
+pkgrel=4
+pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
+arch=('any')
+license=('BSD')
+url="https://github.com/scrapy/parsel"
+depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
+makedepends=('python-pytest' 'python-pytest-runner' 'python-sybil' 'python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
+sha512sums=('d3161522e1102cceeb1f29ab020b33019d4ac7f096cfab8fbe40f54073e49afc24f02aa54206d86f56c8f92e3db2d0d2f8a3dbdfa6417492cf299201f2ae6604')
+
+build() {
+  cd parsel-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd parsel-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd parsel-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list