[bug#77400,08/26] gnu: python-pyquery: Update to 2.0.1.

Message ID 20250331061901.22670-8-ngraves@ngraves.fr
State New
Headers
Series Some further updates |

Commit Message

Nicolas Graves March 31, 2025, 6:18 a.m. UTC
  * gnu/packages/python-xyz.scm (python-pyquery): Update to 2.0.1.
[build-system]: Switch to pyproject-build-system.
[arguments]{test-flags}: Ignore a test that requires network access.
[native-inputs]: Add python-pytest, python-pytest-cov,
python-requests, python-setuptools, python-webob, python-webtest,
python-wheel.
[propagated-inputs]: Sort inputs.
---
 gnu/packages/python-xyz.scm | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
  

Patch

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 545a867de3..57a62c5233 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21140,19 +21140,28 @@  (define-public python-cookiecutter
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-    (version "1.2.17")
+    (version "2.0.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pyquery" version))
        (sha256
         (base32
-         "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
-    (build-system python-build-system)
+         "1brg6aawb9m5mdfmc6g7v5r6pczbx67r4l9cn5yh6bdi0qkvp501"))))
+    (build-system pyproject-build-system)
+    (arguments
+     ;; This test requires network access.
+     (list #:test-flags #~(list "-k" "not test_get")))
     (native-inputs
-     (list python-webob python-webtest))
+     (list python-pytest
+           python-pytest-cov
+           python-requests
+           python-setuptools
+           python-webob
+           python-webtest
+           python-wheel))
     (propagated-inputs
-     (list python-lxml python-cssselect))
+     (list python-cssselect python-lxml))
     (home-page "https://github.com/gawel/pyquery")
     (synopsis "Make jQuery-like queries on xml documents")
     (description "pyquery allows you to make jQuery queries on xml documents.