summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-06-21 21:53:36 -0300
committerVinicius Monego <monego@posteo.net>2025-06-21 23:27:35 -0300
commite583bfed568b304a0f21db73f58e0606afd12778 (patch)
treec3e983e7448c954bd7bb884275e73d694fb65c26 /gnu/packages/python-web.scm
parent204c6279739d488e814aec340d739a0f8b860a05 (diff)
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
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm28
1 files changed, 20 insertions, 8 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 <holger.peters@posteo.de>
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
-;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021, 2022, 2023, 2025 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;; Copyright © 2020, 2022, 2024 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
@@ -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)
+ (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 python-six))
+ (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))