guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d2825f6b38b111a421e4ab4f544a5bf243a4a6d5
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Aug 26 22:51:19 2026 +0100

    gnu: python-mccabe: Update to 0.7.0-0.292b5c7.
    
    * gnu/packages/python-xyz.scm (python-mccabe): Update to 0.7.0-0.292b5c7.
    [source]: Switch to git-fetch.
    [native-inputs]: Remove python-toml and python-wheel; add python-pytest.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cfb6c462daf..c08257cdf49 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17599,31 +17599,37 @@ use of the Meson build system.")
     (license license:isc)))
 
 (define-public python-mccabe
-  (package
-    (name "python-mccabe")
-    (version "0.7.0")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "mccabe" version))
-       (sha256
-        (base32 "09b34c7jj2a0yya7fp3x7lncna4zj7pr4caj9vgvnq1vqd0053il"))))
-    (build-system pyproject-build-system)
-    (arguments
-     (list
-      ;; Test fixtures are not released yet, see
-      ;; <https://github.com/PyCQA/mccabe/issues/93>
-      #:tests? #f))
-    (native-inputs
-     (list python-toml
-           python-setuptools
-           python-wheel))
-    (home-page "https://github.com/PyCQA/mccabe";)
-    (synopsis "McCabe checker, plugin for flake8")
-    (description
-     "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
+  ;; Last public release (0.7.0) is from 2022-01-24.
+  (let ((commit "292b5c71c3fe5496771b46ac9d86361c9b760d17")
+        (revision "0"))
+    (package
+      (name "python-mccabe")
+      (version (git-version "0.7.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/PyCQA/mccabe";)
+                (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "12aa5qjzf0anx1bdfcgg4gvn9kkm1cc5qi2lzrh23c5gxyfyxw17"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list
+        #:test-flags
+        ;; AssertionError: 0 != 1
+        #~(list (string-append "--deselect=test_mccabe.py"
+                               
"::RegressionTests::test_get_module_complexity"))))
+      (native-inputs
+       (list python-pytest
+             python-setuptools))
+      (home-page "https://github.com/PyCQA/mccabe";)
+      (synopsis "McCabe checker, plugin for flake8")
+      (description
+       "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
 complexity of Python source code.")
-    (license license:expat)))
+      (license license:expat))))
 
 (define-public python-autoflake8
   (package

Reply via email to