mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: python-black: Update to 20.8b1.
* 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. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
7128174201
commit
b5e51a06de
1 changed files with 14 additions and 4 deletions
|
@ -4053,14 +4053,14 @@ (define-public python-pathspec
|
|||
(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 @@ (define-public python-black
|
|||
"")))))
|
||||
#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 @@ (define-public python-black
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue