sharlatan pushed a commit to branch master
in repository guix.

commit a99f9c6044d2e5f93fadf770da05c6a47f715c74
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Thu May 8 00:12:18 2025 +0100

    gnu: python-pep8-naming: Move python-check.
    
    * gnu/packages/python-xyz.scm (python-pep8-naming): Move from here ...
    * gnu/packages/python-check.scm: ... to here.
    
    * gnu/packages/wm.scm: Add python-check module.
    
    Change-Id: I1b0e0eec5e8f815f855860fd149a17e2470adea2
---
 gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm   | 31 -------------------------------
 gnu/packages/wm.scm           |  1 +
 3 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index a0909f6159..b4de2c3b50 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2020 Tanguy Le Carrour <tan...@bioneland.org>
 ;;; Copyright © 2021-2025 Sharlatan Hellseher <sharlata...@gmail.com>
 ;;; Copyright © 2021 Brendan Tildesley <m...@brendan.scot>
+;;; Copyright © 2021 Giacomo Leidi <goodoldp...@autistici.org>
 ;;; Copyright © 2021, 2022 Guillaume Le Vaillant <g...@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <m...@bonfacemunyoki.com>
 ;;; Copyright © 2021 Sebastian Gibb <m...@sebastiangibb.de>
@@ -1524,6 +1525,37 @@ __version_tuple__ = version_tuple = (~a)~%" version 
version-tuple)))))))))
 in an opinionated way.")
     (license license:expat)))
 
+(define-public python-pep8-naming
+  (package
+    (name "python-pep8-naming")
+    (version "0.15.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pep8_naming" version))
+       (sha256
+        (base32 "0acxcg4z43kkddlvjbcbbh1jp8rx5z0cq9hz7jlyvpm2mfcs9x7n"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "python" "run_tests.py")))))))
+    (native-inputs
+     (list python-setuptools
+           python-wheel))
+    (propagated-inputs
+     (list python-flake8))
+    (home-page "https://github.com/PyCQA/pep8-naming";)
+    (synopsis "Check PEP-8 naming conventions")
+    (description
+     "This package provides the @code{pep8-naming} Python module, a plugin for
+flake8 to check PEP-8 naming conventions.")
+    (license license:expat)))
+
 (define-public python-pyannotate
   (package
     (name "python-pyannotate")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d0d00c9803..f97f4ae45b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16319,37 +16319,6 @@ you do not want to store entirely on disk or on 
memory.")
 application monitoring and error tracking software.")
     (license license:bsd-2)))
 
-(define-public python-pep8-naming
-  (package
-    (name "python-pep8-naming")
-    (version "0.15.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "pep8_naming" version))
-       (sha256
-        (base32 "0acxcg4z43kkddlvjbcbbh1jp8rx5z0cq9hz7jlyvpm2mfcs9x7n"))))
-    (build-system pyproject-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (invoke "python" "run_tests.py")))))))
-    (native-inputs
-     (list python-setuptools
-           python-wheel))
-    (propagated-inputs
-     (list python-flake8))
-    (home-page "https://github.com/PyCQA/pep8-naming";)
-    (synopsis "Check PEP-8 naming conventions")
-    (description
-     "This package provides the @code{pep8-naming} Python module, a plugin for
-flake8 to check PEP-8 naming conventions.")
-    (license license:expat)))
-
 (define-public python-pep440
   (package
     (name "python-pep440")
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 66dd5f2035..d739a2570c 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -174,6 +174,7 @@
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-build)
+  #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)

Reply via email to