Subject: [PATCH v5 01/48] gnu: Remove python-pytest-pep8.

From: Nicolas Graves <[email-masked]>
Date: Thu, 27 Feb 2025 15:27:02 +0100

This package is outdated.

* gnu/packages/check.scm (python-pytest-pep8): Delete variable.
(python-pytest-flakes)[native-inputs]: Remove python-pytest-pep8.
* gnu/packages/machine-learning.scm (python-keras,
python-keras-applications)[native-inputs]: Remove python-pytest-pep8.
---
 gnu/packages/check.scm            | 33 -------------------------------
 gnu/packages/machine-learning.scm |  3 +--
 2 files changed, 1 insertion(+), 35 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index f131a0be01..baa3a2f4c3 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3090,39 +3090,6 @@ (define-public python-pytest-mypy-testing
 expression this allows you to check mypys type interference.")
     (license (list license:expat license:asl2.0))))
 
-(define-public python-pytest-pep8
-  (package
-    (name "python-pytest-pep8")
-    (version "1.0.6")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "pytest-pep8" version))
-              (sha256
-               (base32
-                "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-dependencies
-           (lambda _
-             (substitute* "setup.py"
-               (("'pytest-cache', ") ""))))  ; Included in recent pytest
-         (replace 'check
-            (lambda* (#:key tests? inputs outputs #:allow-other-keys)
-              (when tests?
-                (add-installed-pythonpath inputs outputs)
-                (invoke "pytest" "-v")))))))
-    (native-inputs
-     (list python-pytest))
-    (propagated-inputs
-     (list python-pep8))
-    (home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
-    (synopsis "Py.test plugin to check PEP8 requirements")
-    (description "Pytest plugin for checking PEP8 compliance.")
-    (license license:expat)))
-
 (define-public python-pytest-perf
   (package
     (name "python-pytest-perf")
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 1a007520a4..c051974244 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -3903,7 +3903,7 @@ (define-public python-keras-applications
     (propagated-inputs
      (list python-h5py python-numpy))
     (native-inputs
-     (list python-pytest python-pytest-cov python-pytest-pep8
+     (list python-pytest python-pytest-cov
            python-pytest-xdist))
     (home-page "https://github.com/keras-team/keras-applications")
     (synopsis "Reference implementations of popular deep learning models")
@@ -4073,7 +4073,6 @@ (define-public python-keras
            python-pandas
            python-pytest
            python-pytest-cov
-           python-pytest-pep8
            python-pytest-timeout
            python-pytest-xdist
            python-pyux
-- 
2.48.1