summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-23 19:48:32 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-28 21:36:59 +0000
commit2d3a2f50617ddc5299148d190ec9170b9aec3c81 (patch)
treec270bc25022896ad6f7ca487758790757c455af0 /gnu/packages/python-web.scm
parent77f4b98f558114e93db3510b6a8273c2a5709465 (diff)
gnu: python-cloudscraper: Update to 3.0.0.
* gnu/packages/python-web.scm (python-cloudscraper): Update to 3.0.0. [arguments]<#:test-flags>: Refresh them. <#:phases>: Rename and enrich phase 'drop-unsupported-sources to phase 'relax-requirments. [propagated-inpurs]: Add python-pycryptodome, python-brotli, python-websocket-client. Change-Id: I79b08c887190a70e36bc5d79c3f57274b9c7c16d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm24
1 files changed, 15 insertions, 9 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d1664be2e56..dee5c5622eb 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -11203,7 +11203,7 @@ bare-metal installations.")
(define-public python-cloudscraper
(package
(name "python-cloudscraper")
- (version "1.2.60")
+ (version "3.0.0")
(source
(origin
(method git-fetch)
@@ -11212,7 +11212,7 @@ bare-metal installations.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "00cmxgwdm0x1j4a4ipwvpzih735hdzidljbijk1b3laj3dgvnvsm"))
+ (base32 "13w0ywz2y8x0zwpwzrnn46wyq307hfpdcz49zy33yyf46rq9n10n"))
(modules '((guix build utils)))
(snippet
'(with-directory-excursion "cloudscraper"
@@ -11226,14 +11226,17 @@ bare-metal installations.")
(arguments
(list
#:test-flags
- #~(list "-k" "not \
-test_getCookieString_challenge_js_challenge1_16_05_2020")
+ #~(list "-k" "not test_403_handling")
#:phases
#~(modify-phases %standard-phases
- ;; XXX: Dependencies, that have not yet been packaged
- ;; and cause an import error when included.
- (add-after 'unpack 'drop-unsupported-sources
+ (add-after 'unpack 'relax-requirements
(lambda _
+ ;; XXX: Relax brotli dependency.
+ (substitute* "pyproject.toml"
+ (("\"brotli>=.*\"")
+ "\"brotli\""))
+ ;; XXX: Dependencies, that have not yet been packaged
+ ;; and cause an import error when included.
(delete-file "cloudscraper/interpreters/v8.py")))
(add-after 'unpack 'fix-references
(lambda _
@@ -11242,12 +11245,15 @@ test_getCookieString_challenge_js_challenge1_16_05_2020")
(string-append "'" (which "node") "'"))))))))
(inputs (list node-lts))
(propagated-inputs
- (list python-js2py
+ (list python-pycryptodome
+ python-brotli
+ python-js2py
python-polling2
python-requests
python-requests-toolbelt
python-responses
- python-pyparsing))
+ python-pyparsing
+ python-websocket-client))
(native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/venomous/cloudscraper")
(synopsis "Cloudflare anti-bot bypass")