[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/32: gnu: Add python-scrapy.
From: |
guix-commits |
Subject: |
32/32: gnu: Add python-scrapy. |
Date: |
Mon, 2 May 2022 09:16:19 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f455c1e313ca1cb7cb8d875b9fa00e2b8c5ab3c2
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Wed Apr 20 17:28:04 2022 +0000
gnu: Add python-scrapy.
* gnu/packages/python-web.scm (python-scrapy): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-web.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b2fbbc86cd..0f9f1e8786 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6518,3 +6518,62 @@ by asyncio.")
HTML and XML using XPath and CSS selectors, optionally combined with
regular expressions.")
(license license:bsd-3)))
+
+(define-public python-scrapy
+ (package
+ (name "python-scrapy")
+ (version "2.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Scrapy" version))
+ (sha256
+ (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest"
+ ;; requires network access
+ "--ignore" "tests/test_command_check.py"
+ "-k"
+ (string-append
+ ;; Failing for unknown reasons
+ "not
test_server_set_cookie_domain_suffix_public_private"
+ " and not
test_user_set_cookie_domain_suffix_public_private"
+ " and not test_pformat")
+ "tests")))))))
+ (propagated-inputs
+ (list python-botocore ; Optional: For S3FeedStorage class.
+ python-cryptography
+ python-cssselect
+ python-itemadapter
+ python-itemloaders
+ python-lxml
+ python-parsel
+ python-protego
+ python-pydispatcher
+ python-pyopenssl
+ python-queuelib
+ python-service-identity
+ python-setuptools
+ python-tldextract
+ python-twisted
+ python-w3lib
+ python-zope-interface))
+ (native-inputs
+ (list python-pytest
+ python-pyftpdlib
+ python-sybil
+ python-testfixtures
+ python-uvloop))
+ (home-page "https://scrapy.org";)
+ (synopsis "High-level Web crawling and Web scraping framework")
+ (description "Scrapy is a fast high-level web crawling and web
+scraping framework, used to crawl websites and extract structured data
+from their pages. It can be used for a wide range of purposes, from data
+mining to monitoring and automated testing.")
+ (license license:bsd-3)))
- 20/32: gnu: apl: Remove input labels., (continued)
- 20/32: gnu: apl: Remove input labels., guix-commits, 2022/05/02
- 22/32: gnu: fmt: Update to 8.1.1., guix-commits, 2022/05/02
- 05/32: gnu: aws-c-io: Fix comment formatting., guix-commits, 2022/05/02
- 27/32: gnu: Add python-queuelib., guix-commits, 2022/05/02
- 14/32: gnu: aws-lc: Fix checksum and enable tests., guix-commits, 2022/05/02
- 18/32: gnu: Add emacs-git-email., guix-commits, 2022/05/02
- 21/32: gnu: apl: Use G-expressions., guix-commits, 2022/05/02
- 26/32: gnu: Add python-pydispatcher., guix-commits, 2022/05/02
- 28/32: gnu: Add python-itemadapter., guix-commits, 2022/05/02
- 29/32: gnu: Add python-protego., guix-commits, 2022/05/02
- 32/32: gnu: Add python-scrapy.,
guix-commits <=