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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 19:33:55 UTC 2020


    Date: Monday, November 9, 2020 @ 19:33:54
  Author: foutrelis
Revision: 748078

archrelease: copy trunk to community-staging-any

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

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

Copied: python-parsel/repos/community-staging-any/PKGBUILD (from rev 748077, python-parsel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 19:33:54 UTC (rev 748078)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parsel
+pkgver=1.6.0
+pkgrel=2
+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-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