[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 093/232] gnu: python-black: Update to 22.3.0.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 093/232] gnu: python-black: Update to 22.3.0. |
Date: |
Sun, 24 Apr 2022 23:56:59 -0400 |
* 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 @@ (define-public python-pathspec
(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")))))))
--
2.34.0
- [bug#55104] [PATCH 060/232] gnu: python-factory-boy: Update to 3.2.1., (continued)
- [bug#55104] [PATCH 060/232] gnu: python-factory-boy: Update to 3.2.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 063/232] gnu: Add psautohint-font-data., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 065/232] gnu: Add python-ordered-set., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 050/232] gnu: Add python-types-docutils., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 067/232] gnu: Add python-ubelt., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 079/232] gnu: Add python-cffsubr., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 077/232] gnu: Add python-fonttools-next., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 086/232] gnu: Add font-amiri., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 089/232] gnu: Add font-gfs-ambrosia., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 096/232] gnu: Add python-pydevd., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 093/232] gnu: python-black: Update to 22.3.0.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 034/232] gnu: Add python-ufoprocessor., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 054/232] gnu: Add python-jaraco-functools., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 058/232] gnu: Add python-tempora., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 061/232] gnu: python-faker: Update to 13.3.4 and honor TESTS?., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 049/232] gnu: python-mypy: Update to 0.942 and fix search path., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 062/232] gnu: Add python-pytest-randomly., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 053/232] gnu: Add python-jaraco-context., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 064/232] gnu: Add psautohint., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 066/232] gnu: Add python-xdoctest., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 068/232] gnu: python-setuptools: Update to 62.0.0., Maxim Cournoyer, 2022/04/25