[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
93/232: gnu: python-black: Update to 22.3.0.
From: |
guix-commits |
Subject: |
93/232: gnu: python-black: Update to 22.3.0. |
Date: |
Sun, 24 Apr 2022 23:58:52 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 8719b7a7d6a79c9cbab81db1a470b28984149893
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 10 21:57:02 2022 -0400
gnu: python-black: Update to 22.3.0.
* gnu/packages/python-xyz.scm (python-black): Update to 22.3.0.
[phases]{relax-version-requirements}: Delete phase.
{use-absolute-file-names}: Streamline phase.
{disable-broken-tests, remove-entrypoint}: Delete phases.
---
gnu/packages/python-xyz.scm | 39 ++++-----------------------------------
1 file changed, 4 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a6e9f64ff3..96a04009bc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5415,58 +5415,27 @@ matching of file paths.")
(define-public python-black
(package
(name "python-black")
- (version "21.12b0")
+ (version "22.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "black" version))
(sha256
(base32
- "1czjwr1bx9ax5l64xfi54sxb1ycdy4s9ciaqg592x7jn79lhzf3p"))))
+ "0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
- ;; XXX Remove this when updating this package:
- ;; https://github.com/psf/black/issues/2703#issuecomment-1004752142
- (add-after 'unpack 'relax-version-requirements
- (lambda _
- (substitute* "setup.py"
- (("tomli[^\"]*\",")
- "tomli\","))))
(add-after 'patch-source-shebangs 'use-absolute-file-names
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(let* ((inpts (or native-inputs inputs))
- (python3 (search-input-file inpts "/bin/python3"))
- (/bin/false (search-input-file inpts "/bin/false"))
- (/bin/sleep (search-input-file inpts "/bin/sleep")))
+ (python3 (search-input-file inpts "/bin/python3")))
(substitute* (find-files "tests" "\\.py$")
(("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
(string-append "#!" python3 (if (string? minor-version)
minor-version
- ""))))
- (substitute* "tests/test_primer.py"
- (("/bin/false") /bin/false)
- (("/bin/sleep") /bin/sleep)))))
- (add-after 'unpack 'disable-broken-tests
- (lambda* (#:key outputs inputs #:allow-other-keys)
- ;; Make installed package available for running the tests
- (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
- ":" (getenv "PATH")))
-
- ;; The source formatting test fails because we patch various
- ;; files; just disable it.
- (substitute* "tests/test_format.py"
- (("def test_source_is_formatted" all)
- (format #f "@pytest.mark.skip(\"Disabled by Guix.\")\n~a"
- all)))))
- ;; Remove blackd, because it depends on python-aiohttp and
- ;; python-aiohttp-cors.
- (add-after 'unpack 'remove-entrypoint
- (lambda _
- (substitute* "setup.py"
- (("\\s*\"blackd=blackd:patched_main \\[d\\]\",\n") "")
- (("\"blackd\", ") ""))))
+ "")))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
- 120/232: gnu: python-sphinx: Propagate TexLive dependencies., (continued)
- 120/232: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/24
- 121/232: gnu: Add python-pep621., guix-commits, 2022/04/24
- 126/232: gnu: Add texlive-cbfonts-fd., guix-commits, 2022/04/24
- 128/232: download: Add a mirror for CTAN., guix-commits, 2022/04/24
- 130/232: gnu: Add texlive-cm-lgc., guix-commits, 2022/04/24
- 131/232: gnu: Add texlive-xindy., guix-commits, 2022/04/24
- 133/232: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/24
- 78/232: gnu: Add python-afdko., guix-commits, 2022/04/24
- 88/232: gnu: Add texlive-bidi., guix-commits, 2022/04/24
- 92/232: gnu: Add python-untangle., guix-commits, 2022/04/24
- 93/232: gnu: python-black: Update to 22.3.0.,
guix-commits <=
- 105/232: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/24
- 110/232: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/04/24
- 119/232: gnu: Add python-docrepr., guix-commits, 2022/04/24
- 145/232: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/04/24
- 171/232: gnu: python-cmarkgfm: Update to 0.8.0., guix-commits, 2022/04/24
- 178/232: gnu: python-amqp: Update to 5.1.1 and enable tests., guix-commits, 2022/04/24
- 180/232: gnu: python-celery: Update to 5.2.6 and enable tests., guix-commits, 2022/04/24
- 181/232: gnu: Add python-argparse-addons., guix-commits, 2022/04/24
- 185/232: gnu: python-multipart: Fix build with PyYAML 6., guix-commits, 2022/04/24
- 190/232: gnu: python-mkdocs: Update to 1.3.0., guix-commits, 2022/04/24