gnu: python-flake8: Update to 7.1.1.

* gnu/packages/python-xyz.scm (python-flake8): Update to 7.1.1.
Improve style.
[srouce]: Swap to git checkout containing tests.
[build-system]: Swap to pyrpoject-build-system.
[home-page]: Fix it as GitLab link is dead.
[propagated-inputs]: Remove python-entrypoints.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I6e0edd637469c516db90dd927b2d7eb6b96a5f5d
This commit is contained in:
Sharlatan Hellseher 2024-11-29 10:33:39 +00:00
parent 8da504bf23
commit 372b1491a5
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -15289,27 +15289,26 @@ complexity of Python source code.")
(define-public python-flake8 (define-public python-flake8
(package (package
(name "python-flake8") (name "python-flake8")
(version "4.0.1") (version "7.1.1")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "flake8" version)) (method git-fetch) ; no tests data in PyPi package
(sha256 (uri (git-reference
(base32 (url "https://github.com/pycqa/flake8")
"03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0")))) (commit version)))
(build-system python-build-system) (file-name (git-file-name name version))
(arguments (sha256
`(#:phases (modify-phases %standard-phases (base32 "0qbj2m1ljyvpnncnkbm1cscy726c1if4n2c9ysfpmd2zm88rj87a"))))
(replace 'check (build-system pyproject-build-system)
(lambda* (#:key tests? #:allow-other-keys) (native-inputs
(when tests? (list python-pytest
(invoke "pytest" "-v"))))))) python-setuptools
python-wheel))
(propagated-inputs (propagated-inputs
(list python-entrypoints (list python-mccabe
python-mccabe
python-pycodestyle python-pycodestyle
python-pyflakes)) python-pyflakes))
(native-inputs (list python-pytest)) (home-page "https://flake8.pycqa.org/en/latest/")
(home-page "https://gitlab.com/pycqa/flake8")
(synopsis "The modular source code checker: pep8, pyflakes and co") (synopsis "The modular source code checker: pep8, pyflakes and co")
(description (description
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")