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

commit 48d07b6bd964d6b7609b73437c6109daae207e34
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Aug 9 23:59:06 2025 +0100

    gnu: python-debugpy: Reduce closure size.
    
    As tests are disabled, remove all test related inputs and custom check
    phase.
    
    * gnu/packages/python-xyz.scm (python-debugpy) [arguments] <phases>: Do
      not overwrite 'check phase.
      [native-inputs]: Remove python-django, python-gevent, python-flask,
      python-psutil, python-pytest, python-pytest-cov,
      python-pytest-timeout, python-pytest-xdist, and python-requests
    
    Change-Id: I1f6926f233990ecc99711da56075af66791c8f42
---
 gnu/packages/python-xyz.scm | 36 ++++++------------------------------
 1 file changed, 6 insertions(+), 30 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f2255c2627..ca33552e9c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18943,7 +18943,7 @@ and other @acronym{IDEs, Integrated Development 
Environments}.")
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0.
+      #:tests? #f ;FIXME: Fail on systems with YAMA LSM’s ptrace scope > 0.
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-sh-in-tests
@@ -18961,35 +18961,11 @@ and other @acronym{IDEs, Integrated Development 
Environments}.")
             (lambda _
               ;; This adjusts the behavior of debugpy to load pydevd from
               ;; Python site packages.
-              (setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (invoke "pytest" "-vv"
-                        "-n" (number->string (parallel-job-count))
-                        "-k"
-                        (string-append
-                         ;; These tests cannot be run in parallel because their
-                         ;; test data would not be copied by xdist and lead to
-                         ;; import errors. (see:
-                         ;; https://github.com/microsoft/debugpy/issues/342 and
-                         ;; https://github.com/microsoft/debugpy/issues/880).
-                         "not test_custom_python_args "
-                         "and not test_autokill "))))))))
-    (native-inputs
-     ;; See: https://raw.githubusercontent.com/microsoft/debugpy/
-     ;;      main/tests/requirements.txt.
-     (list python-django
-           python-gevent
-           python-flask
-           python-psutil
-           python-pytest
-           python-pytest-cov
-           python-pytest-timeout
-           python-pytest-xdist
-           python-requests
-           python-setuptools))
-    (propagated-inputs (list python-pydevd))
+              (setenv "DEBUGPY_BUNDLING_DISABLED" "1"))))))
+    (native-inputs
+     (list python-setuptools))
+    (propagated-inputs
+     (list python-pydevd))
     (home-page "https://aka.ms/debugpy";)
     (synopsis "Debug Adapter Protocol Python implementation")
     (description "An implementation of the Debug Adapter Protocol for

Reply via email to