unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#44136] [PATCH] gnu: python-black: Update to 20.8b1.
@ 2020-10-22 14:14 Tanguy Le Carrour
  2020-10-23 14:36 ` bug#44136: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Tanguy Le Carrour @ 2020-10-22 14:14 UTC (permalink / raw)
  To: 44136; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-black): Update to 20.8b1.
[arguments] Set PATH to make 1 test pass. Disable 1 failing test.
[propagated-inputs] Add python-mypy-extensions and python-typing-extensions.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 575ce40ac8..e3f8589249 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4053,14 +4053,14 @@ matching of file paths.")
 (define-public python-black
   (package
     (name "python-black")
-    (version "19.10b0")
+    (version "20.8b1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "black" version))
        (sha256
         (base32
-         "0f8mr0yzj78q1dx7v6ggbgfir2wv0n5z2shfbbvfdq7910xbgvf2"))))
+         "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
@@ -4078,7 +4078,11 @@ matching of file paths.")
                                                   "")))))
              #t))
          (add-after 'unpack 'disable-broken-tests
-           (lambda _
+           (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")))
+
              ;; These tests are supposed to be skipped when the blackd
              ;; dependencies are missing, but this doesn't quite work.
              (substitute* "tests/test_black.py"
@@ -4092,15 +4096,21 @@ matching of file paths.")
              (substitute* "tests/test_black.py"
                (("( *)def test_self" match indent)
                 (string-append indent "@unittest.skip(\"guix\")\n" match)))
+
+             (substitute* "tests/test_black.py"
+               (("( *)def test_python38" match indent)
+                (string-append indent "@unittest.skip(\"guix\")\n" match)))
              #t)))))
     (propagated-inputs
      `(("python-click" ,python-click)
        ("python-attrs" ,python-attrs)
        ("python-appdirs" ,python-appdirs)
        ("python-pathspec" ,python-pathspec)
+       ("python-mypy-extensions" ,python-mypy-extensions)
        ("python-regex" ,python-regex)
        ("python-toml" ,python-toml)
-       ("python-typed-ast" ,python-typed-ast)))
+       ("python-typed-ast" ,python-typed-ast)
+       ("python-typing-extensions" ,python-typing-extensions)))
     (native-inputs
      `(("python-setuptools-scm" ,python-setuptools-scm)))
     (home-page "https://github.com/ambv/black")
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#44136: [PATCH] gnu: python-black: Update to 20.8b1.
  2020-10-22 14:14 [bug#44136] [PATCH] gnu: python-black: Update to 20.8b1 Tanguy Le Carrour
@ 2020-10-23 14:36 ` Ludovic Courtès
  2020-10-23 15:49   ` [bug#44136] " Tanguy Le Carrour
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-10-23 14:36 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44136-done

Hi,

Tanguy Le Carrour <tanguy@bioneland.org> skribis:

> * gnu/packages/python-xyz.scm (python-black): Update to 20.8b1.
> [arguments] Set PATH to make 1 test pass. Disable 1 failing test.
> [propagated-inputs] Add python-mypy-extensions and python-typing-extensions.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#44136] [PATCH] gnu: python-black: Update to 20.8b1.
  2020-10-23 14:36 ` bug#44136: " Ludovic Courtès
@ 2020-10-23 15:49   ` Tanguy Le Carrour
  0 siblings, 0 replies; 3+ messages in thread
From: Tanguy Le Carrour @ 2020-10-23 15:49 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 44136-done

Le 10/23, Ludovic Courtès a écrit :
> Hi,
> 
> Tanguy Le Carrour <tanguy@bioneland.org> skribis:
> 
> > * gnu/packages/python-xyz.scm (python-black): Update to 20.8b1.
> > [arguments] Set PATH to make 1 test pass. Disable 1 failing test.
> > [propagated-inputs] Add python-mypy-extensions and python-typing-extensions.
> 
> Applied, thanks!

Thanks!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-23 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 14:14 [bug#44136] [PATCH] gnu: python-black: Update to 20.8b1 Tanguy Le Carrour
2020-10-23 14:36 ` bug#44136: " Ludovic Courtès
2020-10-23 15:49   ` [bug#44136] " Tanguy Le Carrour

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).