me
/
guix
Archived
1
0
Fork 0

gnu: python-jedi: Update to 0.18.2.

* gnu/packages/python-xyz.scm (python-jedi): Update to 0.18.2.
  [source]: Drop snippet.
  [arguments]: Drop phase.
master
Andreas Enge 2023-02-23 15:29:01 +01:00
parent 42810010a9
commit cb3332808f
No known key found for this signature in database
GPG Key ID: F7D5C9BF765C61E3
1 changed files with 3 additions and 17 deletions

View File

@ -18155,7 +18155,7 @@ scans through a file and detects issues.")
(define-public python-jedi (define-public python-jedi
(package (package
(name "python-jedi") (name "python-jedi")
(version "0.18.1") (version "0.18.2")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -18166,26 +18166,12 @@ scans through a file and detects issues.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"07drmi3ai49jw5n23ibkambcgijqcw073ihypjgxfnks5lv4yqy1")) "1nhsajmkn3qj32k5z3ymrd3r6dz2aliv2pqb824m5kaib986dm44"))
(modules '((guix build utils))) (modules '((guix build utils)))))
(snippet
;; Adjust comprehension syntax for Python > 3.8.
;; From <https://github.com/davidhalter/jedi/issues/1824>.
'(substitute* "test/completion/lambdas.py"
(("if lambda: 3")
"if (lambda: 3)")))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-completion-test
(lambda _
;; This resolves a failure in the 'test_completion' test (see:
;; https://github.com/davidhalter/jedi/issues/1824).
;; TODO: Remove after a new release is made (currently: 0.18.1).
(substitute* "test/completion/lambdas.py"
(("\\[a for a in \\[1,2\\] if lambda: 3\\]\\[0\\]")
"[a for a in [1,2] if (lambda: 3)][0]"))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?