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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:54:22 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:54:22
  Author: foutrelis
Revision: 1059506

archrelease: copy trunk to community-staging-any

Added:
  scrapy/repos/community-staging-any/
  scrapy/repos/community-staging-any/PKGBUILD
    (from rev 1059505, scrapy/trunk/PKGBUILD)

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

Copied: scrapy/repos/community-staging-any/PKGBUILD (from rev 1059505, scrapy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:54:22 UTC (rev 1059506)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: PyroDevil <p dot devil at gmail dot com>
+# Contributor: Anibal Pacheco <apacheco.uy at gmail.com>
+
+pkgname=scrapy
+pkgver=2.5.0
+pkgrel=3
+pkgdesc="A fast high-level scraping and web crawling framework."
+arch=('any')
+license=('BSD')
+url="https://scrapy.org"
+depends=('python-twisted' 'python-cryptography' 'python-cssselect' 'python-itemloaders'
+         'python-lxml' 'libxml2' 'python-parsel' 'python-pydispatcher' 'python-pyopenssl'
+         'python-queuelib' 'python-service-identity' 'python-setuptools' 'python-w3lib'
+         'python-zope-interface' 'python-protego' 'python-itemadapter' 'python-h2'
+         'python-priority')
+checkdepends=('python-pytest' 'python-botocore' 'bpython' 'python-brotli' 'python-jmespath'
+              'ipython' 'mitmproxy' 'python-pillow' 'python-sybil' 'python-testfixtures'
+              'python-pyftpdlib' 'python-uvloop')
+optdepends=('ipython: for enhanced support of the interactive scraping shell')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/scrapy/archive/$pkgver.tar.gz")
+sha512sums=('01a5ab605ba6783567147b7ca8c0dd963266aeb63e8eac19e962ee5d6dda85052c23a4d161ab69f130925b8a6f271ffbc28784a8f7fc0216428b5579eaad47b6')
+
+prepare() {
+  cd scrapy-$pkgver
+  sed -i 's/,<4.0//' setup.py
+}
+
+build() {
+  cd scrapy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd scrapy-$pkgver
+  PYTHONPATH="$PWD/build/lib" pytest tests
+}
+
+package() {
+  cd scrapy-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -D -m644 README.rst "$pkgdir"/usr/share/doc/$pkgname/README.rst
+  install -D -m644 docs/intro/install.rst "$pkgdir"/usr/share/doc/$pkgname/INSTALL.rst
+}



More information about the arch-commits mailing list