gnu: python-jedi: Update to 0.15.1 and re-enable tests.

* gnu/packages/python-xyz.scm (python-jedi): Update to 0.15.1; re-enable
tests.
This commit is contained in:
Maxim Cournoyer 2019-09-11 09:34:29 +09:00
parent 4eb97c254e
commit 296e1aea65
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 14 additions and 14 deletions

View File

@ -10556,25 +10556,29 @@ characters, mouse support, and auto suggestions.")
(define-public python-jedi (define-public python-jedi
(package (package
(name "python-jedi") (name "python-jedi")
(version "0.13.3") (version "0.15.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "jedi" version)) (uri (pypi-uri "jedi" version))
(sha256 (sha256
(base32 (base32
"0nsrjlb57njqppxmi8wjsb1dkad7qa7svx67jbkhixq66lz61c1b")))) "0bp4pxhsynaarbvzblsn5x32lzp29svy3sxfy8i6m5iwz9s9r1ds"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`( ;; Many tests are failing with Python 3.7.x as of version 0.13.3 (see: `(#:phases
;; https://github.com/davidhalter/jedi/issues/1263)
#:tests? #f
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'disable-file-completion-test
;; A single parameterized test currently fail (see:
;; https://github.com/davidhalter/jedi/issues/1395). Remove it.
(lambda _
(substitute* "test/test_api/test_completion.py"
((".*'example.py', 'rb\"' \\+ join\\('\\.\\.'.*") ""))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda _
(when tests? (setenv "HOME" "/tmp")
(invoke "py.test" "-vv"))))))) (invoke "python" "-m" "pytest"))))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest) `(("python-pytest" ,python-pytest)
("python-docopt" ,python-docopt))) ("python-docopt" ,python-docopt)))
@ -10592,11 +10596,7 @@ well.")
(license license:expat))) (license license:expat)))
(define-public python2-jedi (define-public python2-jedi
(let ((base (package-with-python2 (strip-python2-variant python-jedi)))) (package-with-python2 python-jedi))
(package
(inherit base)
(arguments (substitute-keyword-arguments (package-arguments base)
((#:tests? _) #t))))))
(define-public ptpython (define-public ptpython
(package (package