gnu: python-scrapy: Update to 2.10.1.
* gnu/packages/python-web.scm (python-scrapy): Update to 2.10.1. [build-system]: Use pyproject-build-system. [arguments]: Use G-Expressions. Do not override the check phase, skip tests in #:test-flags instead. Run tests sequentially and skip fewer tests.master
parent
4b4019789d
commit
f3bbd0d26f
|
@ -8065,36 +8065,29 @@ regular expressions.")
|
||||||
(define-public python-scrapy
|
(define-public python-scrapy
|
||||||
(package
|
(package
|
||||||
(name "python-scrapy")
|
(name "python-scrapy")
|
||||||
(version "2.7.1")
|
(version "2.10.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "Scrapy" version))
|
(uri (pypi-uri "Scrapy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0kpi3hg2ycs6s8cg41r2zc1axd0rpnps8bnzg7wisjyjaf1l1yih"))))
|
(base32 "03yil4hjn14amx5jnvjfahmm78qqax2664z30xxn0dxmzdspimli"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list #:test-flags
|
||||||
(modify-phases %standard-phases
|
;; Tests fail with DNS lookup or need a display.
|
||||||
(replace 'check
|
#~(list "-k" (string-append
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
"not " (string-join
|
||||||
(when tests?
|
(list "test_SCRAPY_CHECK_set"
|
||||||
(invoke "pytest"
|
"test_check_all_default_contracts"
|
||||||
"-n" (number->string (parallel-job-count))
|
"test_check_cb_kwargs_contract"
|
||||||
;; These tests fail when run in parallel (see:
|
"test_check_returns_items_contract"
|
||||||
;; https://github.com/scrapy/scrapy/issues/5502).
|
"test_check_returns_requests_contract"
|
||||||
"--ignore" "tests/test_engine.py"
|
"test_check_scrapes_contract"
|
||||||
"--ignore" "tests/test_engine_stop_download_bytes.py"
|
"test_pformat"
|
||||||
"--ignore" "tests/test_engine_stop_download_headers.py"
|
"test_pformat_old_windows"
|
||||||
;; This test require network access.
|
"test_pformat_windows")
|
||||||
"--ignore" "tests/test_command_check.py"
|
" and not ")))))
|
||||||
"-k"
|
|
||||||
(string-append
|
|
||||||
;; The followin tests fail 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
|
(propagated-inputs
|
||||||
(list python-botocore ; Optional: For S3FeedStorage class.
|
(list python-botocore ; Optional: For S3FeedStorage class.
|
||||||
python-cryptography
|
python-cryptography
|
||||||
|
|
Reference in New Issue