sharlatan pushed a commit to branch master
in repository guix.

commit b130a868dc608fcf0196f4cea269414e53656545
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Apr 29 14:44:18 2025 +0100

    gnu: python-virtualenv-clone: Skip some tests.
    
    * gnu/packages/python-xyz.scm (python-virtualenv-clone) [build-system]:
    Switch to pyproject.
    [arguments] <test-flags>: Skip 5 tests.
    <phases>: Use default 'check.
    [native-inputs]: Remove python-tox, python-coverage, and
    python-hypothesis; add python-setuptools.
    
    Change-Id: I0ecc55f694a03c7e3a41eb5acae0817adde1c0c9
---
 gnu/packages/python-xyz.scm | 53 +++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f60314acb3..e9cfaba1cc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7403,34 +7403,41 @@ modules.  It creates a special virtual environment such 
that @command{pip} or
 work on your part.")
     (license license:expat)))
 
+;; XXX: No new release since 2021, no updates on default branch since 2023, no
+;; users in Guix; consider to remove if it keeps failing to build.
 (define-public python-virtualenv-clone
   (package
     (name "python-virtualenv-clone")
     (version "0.5.7")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/edwardgeorge/virtualenv-clone";)
-                    (commit version)))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0p0d1y3axvjfnxlgwjx2374gikc8bmc82g0m7yashihbikh7pcxa"))))
-    (build-system python-build-system)
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/edwardgeorge/virtualenv-clone";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0p0d1y3axvjfnxlgwjx2374gikc8bmc82g0m7yashihbikh7pcxa"))))
+    (build-system pyproject-build-system)
     (arguments
-     (list #:phases #~(modify-phases %standard-phases
-                        (replace 'check
-                          (lambda* (#:key tests? #:allow-other-keys)
-                            (when tests?
-                              (delete-file "tox.ini")
-                              (invoke "pytest" "-vvv" "tests")))))))
-    (native-inputs (list python-pytest
-                         python-tox
-                         python-virtualenv
-                         python-coverage
-                         python-wheel
-                         python-tomli
-                         python-hypothesis))
+     (list
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; UnicodeDecodeError: 'utf-8' codec can't decode byte
+                    ;; 0xba in position 10: invalid start byte
+                    (list "not test_clone_contents"
+                          ;;  AssertionError: All versions were skipped.
+                          "test_clone_syspath"
+                          "test_clone_version"
+                          "test_virtualenv_syspath"
+                          "test_virtualenv_versions")
+                    " and not "))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-tomli
+           python-virtualenv
+           python-wheel))
     (home-page "https://github.com/edwardgeorge/virtualenv-clone";)
     (synopsis "Clone a non-relocatable virtualenv cleanly")
     (description

Reply via email to