Subject: [bug#70858] [PATCH v5 29/48] build-system/pyproject: Remove python-pytest-flake8 native-input.

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

* gnu/packages/bioinformatics.scm (python-muon)
* gnu/packages/check.scm (python-pytest-enabler, python-pytest-perf)
* gnu/packages/dav.scm (radicale)
* gnu/packages/debug.scm (c-vise)
* gnu/packages/matrix.scm (python-matrix-nio)
* gnu/packages/python-web.scm (python-mechanicalsoup)
* gnu/packages/python-xyz.scm (python-pyvips, python-dask-image,
  python-importlib-resources, python-jaraco-classes,
  python-jaraco-context, python-jaraco-functools,
  python-jaraco-packaging, python-jaraco-test, python-path,
  python-pip-run, python-tempora, python-cairosvg)
[native-inputs]: Remove python-pytest-flake8.

* gnu/packages/python-check.scm (python-pytest-csv)
[arguments]{test-flags}: Ignore flake8 related test.
[native-inputs]: Remove python-pytest-flake8.
---
 gnu/packages/bioinformatics.scm |  3 +--
 gnu/packages/check.scm          |  2 --
 gnu/packages/dav.scm            |  1 -
 gnu/packages/debug.scm          |  2 +-
 gnu/packages/matrix.scm         |  1 -
 gnu/packages/python-check.scm   |  5 +++--
 gnu/packages/python-web.scm     |  3 +--
 gnu/packages/python-xyz.scm     | 16 ++--------------
 8 files changed, 8 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 5cb3f86853..2fa52eb5b1 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -5425,8 +5425,7 @@ (define-public python-muon
                              python-tqdm
                              python-umap-learn))
     (native-inputs (list python-flit-core
-                         python-pytest
-                         python-pytest-flake8))
+                         python-pytest))
     (home-page "https://github.com/scverse/muon")
     (synopsis "Multimodal omics analysis framework")
     (description "muon is a multimodal omics Python framework.")
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 57e62f6af0..ee0f4385e2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2944,7 +2944,6 @@ (define-public python-pytest-enabler
            python-toml))
     (native-inputs (list python-pytest
                          python-pytest-checkdocs
-                         python-pytest-flake8
                          python-pytest-mypy
                          python-setuptools
                          python-setuptools-scm
@@ -3117,7 +3116,6 @@ (define-public python-pytest-perf
      (list python-pytest
            python-pytest-checkdocs
            python-pytest-enabler
-           python-pytest-flake8
            python-pytest-mypy
            python-setuptools
            python-wheel))
diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm
index ff5d8409b0..71d12a0ca1 100644
--- a/gnu/packages/dav.scm
+++ b/gnu/packages/dav.scm
@@ -58,7 +58,6 @@ (define-public radicale
     (build-system pyproject-build-system)
     (native-inputs
      (list python-pytest
-           python-pytest-flake8
            python-setuptools
            python-waitress
            python-wheel))
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 5580b4eaf4..59d17f2623 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -255,7 +255,7 @@ (define-public c-vise
        (file-name (git-file-name name version))))
     (build-system cmake-build-system)
     (native-inputs
-     (list flex python-pytest python-pytest-flake8))
+     (list flex python-pytest))
     (inputs
      (list bash-minimal clang llvm unifdef
            python python-pebble python-psutil python-chardet))
diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 970093d345..e7c1468da4 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -200,7 +200,6 @@ (define-public python-matrix-nio
            python-pytest-aiohttp
            python-pytest-asyncio
            python-pytest-benchmark
-           python-pytest-flake8
            python-setuptools
            python-wheel))
     (propagated-inputs
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 09a56f172e..c7187d1523 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -673,9 +673,10 @@ (define-public python-pytest-csv
         (base32
          "17518f2fn5l98lyk9p8r7215c1whi61imzrh6ahrmcksr8w0zz04"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list #:test-flags '(list "--ignore=tests/test_flake8.py")))
     (native-inputs
-     (list python-pytest-flake8
-           python-pytest-xdist
+     (list python-pytest-xdist
            python-setuptools
            python-tabulate
            python-wheel))
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index f0ccbf3b92..dcfe693178 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2309,8 +2309,7 @@ (define-public python-mechanicalsoup
     (propagated-inputs
      (list python-beautifulsoup4 python-lxml python-requests python-six))
     (native-inputs
-     (list python-pytest-flake8
-           python-pytest-httpbin
+     (list python-pytest-httpbin
            python-pytest-mock
            python-pytest-runner
            python-requests-mock
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1dec12b664..86655a9d42 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12037,7 +12037,6 @@ (define-public python-pyvips
     (native-inputs
      (list python-pyperf
            python-pytest
-           python-pytest-flake8
            python-pytest-runner))
     (inputs
      (list glib vips))
@@ -12792,7 +12791,6 @@ (define-public python-importlib-resources
      (list python-pytest
            python-pytest-checkdocs
            python-pytest-enabler
-           python-pytest-flake8
            python-pytest-mypy
            python-setuptools-57
            python-setuptools-scm))
@@ -12940,7 +12938,6 @@ (define-public python-jaraco-classes
     (native-inputs
      (list python-pytest
            python-pytest-checkdocs
-           python-pytest-flake8
            python-pytest-mypy
            python-setuptools
            python-setuptools-scm
@@ -13031,7 +13028,6 @@ (define-public python-jaraco-context
     (native-inputs
      (list python-pytest
            python-pytest-checkdocs
-           python-pytest-flake8
            python-pytest-mypy
            python-setuptools
            python-setuptools-scm
@@ -13064,7 +13060,6 @@ (define-public python-jaraco-functools
      (list python-jaraco-classes
            python-pytest
            python-pytest-checkdocs
-           python-pytest-flake8
            python-pytest-mypy
            python-setuptools
            python-setuptools-scm
@@ -13094,7 +13089,6 @@ (define-public python-jaraco-packaging
     (propagated-inputs
      (list python-pytest
            python-pytest-checkdocs
-           python-pytest-flake8
            python-rst.linker
            python-setuptools
            python-setuptools-scm
@@ -17898,7 +17892,6 @@ (define-public python-path
                python-pytest
                python-pytest-checkdocs
                python-pytest-enabler
-               python-pytest-flake8
                python-pytest-mypy)))
     (properties (alist-delete 'hidden?
                               (package-properties
@@ -18002,7 +17995,6 @@ (define-public python-pip-run
                python-pytest
                python-pytest-checkdocs
                python-pytest-enabler
-               python-pytest-flake8
                python-pytest-mypy)))
     (properties (alist-delete 'hidden? (package-properties
                                         python-pip-run-bootstrap)))))
@@ -27862,7 +27854,6 @@ (define-public python-tempora
            python-pytest
            python-pytest-checkdocs
            python-pytest-enabler
-           python-pytest-flake8
            python-pytest-freezegun
            python-pytest-mypy
            python-setuptools-scm
@@ -30536,7 +30527,7 @@ (define-public python-dask-image
                              python-scipy
                              python-tifffile))
     (native-inputs
-     (list python-pytest-flake8 python-pytest))
+     (list python-pytest))
     (home-page "https://github.com/dask/dask-image")
     (synopsis "Distributed image processing")
     (description "This is a package for image processing with Dask arrays.
@@ -31630,10 +31621,7 @@ (define-public python-cairosvg
      (list python-cairocffi python-cssselect2 python-defusedxml
            python-pillow python-tinycss2))
     (native-inputs
-     (list python-pytest-flake8
-           python-pytest-runner
-           python-setuptools
-           python-wheel))
+     (list python-pytest-runner python-setuptools python-wheel))
     (home-page "https://cairosvg.org/")
     (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
     (description "CairoSVG is a SVG converter based on Cairo.  It can export
-- 
2.48.1