# Contributor: Orion # Maintainer: Orion pkgname=py3-scrapy pkgver=2.11.0 pkgrel=0 pkgdesc="Fast high-level scraping and web crawling framework" url="https://scrapy.org/" arch="noarch" license="BSD-3-Clause" # py3-twisted<23.8.0: https://github.com/scrapy/scrapy/issues/6024 depends=" py3-cryptography py3-cssselect py3-itemadapter py3-itemloaders py3-lxml py3-openssl py3-parsel py3-protego py3-pydispatcher py3-queuelib py3-service_identity py3-tldextract py3-twisted<23.8.0 py3-w3lib py3-zope-interface python3 " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-pyftpdlib py3-pytest py3-sybil py3-testfixtures " subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/S/Scrapy/Scrapy-$pkgver.tar.gz" builddir="$srcdir"/Scrapy-$pkgver options="!check" # take forever # secfixes: # 2.6.1-r0: # - CVE-2022-0577 # - CVE-2022-21716 replaces="py-scrapy" # Backwards compatibility provides="py-scrapy=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest tests } package() { python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" bbebea94329ffacfb2b867884b3800986f4013bbbe34eb2d299c09a0a653ac2793e581d92509dabaa0f8b74a0b4fbeebedbad8fb1074b18ee522e73fad039d2b Scrapy-2.11.0.tar.gz "