sharlatan pushed a commit to branch python-team
in repository guix.

commit e9fb46eafc22054b7223a52f5a76f7e0fa484cc5
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jan 26 01:22:21 2025 +0000

    gnu: python-h2: Fix buld.
    
    * gnu/packages/python-web.scm (python-h2): Fix build.
    [build-system]: Swap to pyrpoject-build-system.
    [arugments] <test-flags>: Skip 10 tests.
    [native-inputs]: Remove python-hypothesis; add python-setuptools and
    python-wheel.
    
    Change-Id: I3bef5ad8d69e4c651b43db39fcbbae6df152e1e2
---
 gnu/packages/python-web.scm | 36 ++++++++++++++++++++++++++----------
 1 file changed, 26 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 0726b944c6..e290008e1c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2301,19 +2301,35 @@ and that could be anything you want.")
        (uri (pypi-uri "h2" version))
        (sha256
         (base32 "1fraip114fm1ha5w37pdc0sk8dn9pb0ck267zrwwpap7zc4clfm8"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
-             (when tests?
-               (add-installed-pythonpath inputs outputs)
-               (invoke "python" "-m" "pytest" "-vv" "test")))))))
+     (list
+      ;; AssertionError: assert '<RemoteSettingsChanged
+      ;; changed_settings:{ChangedSetting(setting=4, original_value=65536,
+      ;; new_value=32768)}>' == '<RemoteSettingsChanged
+      ;; 
changed_settings:{ChangedSetting(setting=SettingCodes.INITIAL_WINDOW_SIZE,
+      ;; original_value=65536, new_value=32768)}>'
+      #:test-flags
+      #~(list "-k"
+              (string-join
+               (list "not test_remotesettingschanged_repr"
+                     "test_streamreset_repr"
+                     "test_settingsacknowledged_repr"
+                     "test_connectionterminated_repr[None-None]"
+                     "test_connectionterminated_repr[some"
+                     "test_remotesettingschanged_repr"
+                     "test_streamreset_repr"
+                     "test_settingsacknowledged_repr"
+                     "test_connectionterminated_repr[None-None]"
+                     "test_connectionterminated_repr[some")
+               " and not "))))
     (native-inputs
-     (list python-hypothesis python-pytest))
+     (list python-pytest
+           python-setuptools
+           python-wheel))
     (propagated-inputs
-     (list python-hpack python-hyperframe))
+     (list python-hpack
+           python-hyperframe))
     (home-page "https://github.com/python-hyper/h2";)
     (synopsis "HTTP/2 State-Machine based protocol implementation")
     (description

Reply via email to