* [PATCH 1/2] gnu: python-pycodestyle: Update to 2.8.0.
@ 2022-06-06 20:19 phodina via
0 siblings, 0 replies; only message in thread
From: phodina via @ 2022-06-06 20:19 UTC (permalink / raw)
To: help-guix; +Cc: Efraim Flashner
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
Hi Efraim,
I've also noticed broken python-flake8 and saw your fix b995c1bd10e445cfdabadb1a5e30935729ce094c.
Here are the patches to make it redundant :-)
Kind regards
Petr
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-python-pycodestyle-Update-to-2.8.0.patch --]
[-- Type: text/x-patch; name=0001-gnu-python-pycodestyle-Update-to-2.8.0.patch, Size: 1396 bytes --]
From 921a6da57ce688587734af3c51a337cc7c77dddb Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Mon, 6 Jun 2022 22:13:03 +0200
Subject: [PATCH 1/2] gnu: python-pycodestyle: Update to 2.8.0.
* gnu/packages/python-xyz.scm (python-pycodestyle): Update to 2.8.0.
[arguments]: Respect tests?.
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6132019a53..69ddd3608b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6444,21 +6444,22 @@ (define-public python-socksipychain
(define-public python-pycodestyle
(package
(name "python-pycodestyle")
- (version "2.7.0")
+ (version "2.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycodestyle" version))
(sha256
(base32
- "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3"))))
+ "0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(home-page "https://pycodestyle.readthedocs.io/")
--
2.35.1
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-python-flake8-Update-to-4.0.1.patch --]
[-- Type: text/x-patch; name=0002-gnu-python-flake8-Update-to-4.0.1.patch, Size: 2039 bytes --]
From cf237f9d413cb69df5fed12f75cde87555fd5c4b Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Mon, 6 Jun 2022 22:15:10 +0200
Subject: [PATCH 2/2] gnu: python-flake8: Update to 4.0.1.
* gnu/packages/python-xyz.scm (python-flake8): Update to 4.0.1.
[source]: Remove snippet.
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 69ddd3608b..dec7a45961 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10195,27 +10195,21 @@ (define-public python-mccabe
(define-public python-flake8
(package
(name "python-flake8")
- (version "3.9.2")
+ (version "4.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "flake8" version))
(sha256
(base32
- "0sspgh2ph7bb5fmf49mrdhi7n5m421kfkxk1n0vn4akgg20q6lh7"))
- (snippet
- #~(begin
- (use-modules (guix build utils))
- (substitute* "setup.cfg"
- ;; Remove upper bound on pyflakes version.
- (("(pyflakes >=.*), .*" _ pyflakes)
- (string-append pyflakes "\n")))))))
+ "03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-v"))))))
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-v")))))))
(propagated-inputs (list python-pycodestyle python-entrypoints
python-pyflakes python-mccabe))
(native-inputs (list python-mock python-pytest))
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-06 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 20:19 [PATCH 1/2] gnu: python-pycodestyle: Update to 2.8.0 phodina via
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).