guix_mirror_bot pushed a commit to branch master
in repository guix.
commit e583bfed568b304a0f21db73f58e0606afd12778
Author: Vinicius Monego <[email protected]>
AuthorDate: Sat Jun 21 21:53:36 2025 -0300
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(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 445560de3e..5e65030fec 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -38,7 +38,7 @@
;;; Copyright © 2020 Holger Peters <[email protected]>
;;; Copyright © 2020 Noisytoot <[email protected]>
;;; Copyright © 2020 Edouard Klein <[email protected]>
-;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego <[email protected]>
+;;; Copyright © 2020, 2021, 2022, 2023, 2025 Vinicius Monego
<[email protected]>
;;; Copyright © 2020 Konrad Hinsen <[email protected]>
;;; Copyright © 2020, 2022, 2024 Giacomo Leidi <[email protected]>
;;; Copyright © 2020 Raghav Gururajan <[email protected]>
@@ -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))