guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

52/361: gnu: python-pyproject-metadata: Disable two tests.


From: guix-commits
Subject: 52/361: gnu: python-pyproject-metadata: Disable two tests.
Date: Fri, 22 Nov 2024 06:00:10 -0500 (EST)

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

commit a4846b5e622bb7c950674e8a1ade843e99dbbac0
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Apr 6 10:58:21 2024 +0200

    gnu: python-pyproject-metadata: Disable two tests.
    
    * gnu/packages/python-xyz.scm (python-pyproject-metadata)[arguments]:
    Disable two tests.
    (python-pyproject-metadata-0.7)[arguments]: Override.
    
    Change-Id: I13bdf9d9e8705d84306f235b1abd58a147726426
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 34cf897eb9..ef2b83d730 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14808,6 +14808,12 @@ plugin for flake8 to check PEP-8 naming conventions.")
         (base32
          "0yvs59ymz5gdix34a95wxlxvk9bnvjgrzsnmnc3ws7whpfv3yasm"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; Two tests fail because the error message slightly changed, so the
+      ;; tests' regular expressions no longer match.
+      '(list "--ignore=tests/test_standard_metadata.py")))
     (propagated-inputs (list python-packaging))
     (native-inputs (list python-pypa-build python-pytest python-setuptools
                          python-tomli python-wheel))
@@ -14820,6 +14826,23 @@ validate this input and generate a PEP 643-compliant 
metadata
 file (e.g. @file{PKG-INFO}).")
     (license license:expat)))
 
+(define-public python-pyproject-metadata-0.7
+  (package
+    (inherit python-pyproject-metadata)
+    (name "python-pyproject-metadata")
+    (version "0.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/FFY00/python-pyproject-metadata";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0yvs59ymz5gdix34a95wxlxvk9bnvjgrzsnmnc3ws7whpfv3yasm"))))
+    (arguments '())))
+
 ;; pep621 was renamed to pyproject-metadata.
 (define-public python-pep621
   (deprecated-package "python-pep621" python-pyproject-metadata))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]