From e583bfed568b304a0f21db73f58e0606afd12778 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 21 Jun 2025 21:53:36 -0300 Subject: gnu: python-mechanicalsoup: Update to 1.4.0. * gnu/packages/python-web.scm (python-mechanicalsoup): Update to 1.4.0. [source]: Update URI. [build-system]: Use pyproject-build-system. [arguments]<#:phases>: Add phase 'relax-dependencies' after 'unpack'. [propagated-inputs]: Remove python-six. [native-inputs]: Remove python-pytest-runner. Add python-pytest. Change-Id: Ib22e670f620419c59f8b51e38c14008da9a78f29 --- gnu/packages/python-web.scm | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 445560de3e7..5e65030fecf 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -38,7 +38,7 @@ ;;; Copyright © 2020 Holger Peters ;;; Copyright © 2020 Noisytoot ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego +;;; Copyright © 2020, 2021, 2022, 2023, 2025 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen ;;; Copyright © 2020, 2022, 2024 Giacomo Leidi ;;; Copyright © 2020 Raghav Gururajan @@ -2742,22 +2742,34 @@ object graph to and from JSON.") (define-public python-mechanicalsoup (package (name "python-mechanicalsoup") - (version "1.0.0") + (version "1.4.0") (source (origin (method url-fetch) - (uri (pypi-uri "MechanicalSoup" version)) + (uri (pypi-uri "mechanicalsoup" version)) (sha256 - (base32 "01sddjxy3rznh63hnl5lbv1hhk6xyiviwmkiw4x7v4ap35fb3lrp")))) - (build-system python-build-system) - (propagated-inputs - (list python-beautifulsoup4 python-lxml python-requests python-six)) + (base32 "0k1ac77ld6jyjm5fsr44399l5gmiwnz5w6s74i3qqx2scfbsgs6w")))) + (build-system pyproject-build-system) + (arguments + (list + ;; The following dependencies are not directly required, the developer + ;; only pinned versions because of vulnerabilities. They also break + ;; sanity-check because it checks for a python-certifi version which is + ;; more recent than the one available in Guix. + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'relax-dependencies + (lambda _ + (substitute* "requirements.txt" + (("certifi.*") "") + (("urllib3.*") ""))))))) + (propagated-inputs + (list python-beautifulsoup4 python-lxml python-requests)) (native-inputs - (list python-pytest-cov + (list python-pytest + python-pytest-cov python-pytest-flake8 python-pytest-httpbin python-pytest-mock - python-pytest-runner python-requests-mock python-setuptools python-wheel)) -- cgit v1.3