[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]. |
Date: |
Sun, 24 Apr 2022 23:55:36 -0400 |
* gnu/packages/python-xyz.scm (python-ipython): Update to 8.2.0.
[phases]{fix-tests}: Delete phase.
{check}: Remove extraneous add-installed-pythonpath call. Invoke Pytest
directly.
Reported-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/python-xyz.scm | 45 ++++++++++++-------------------------
1 file changed, 14 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8d46d992b0..44011944d9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9059,13 +9059,13 @@ (define-public python-stack-data
(define-public python-ipython
(package
(name "python-ipython")
- (version "7.27.0")
+ (version "8.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipython" version ".tar.gz"))
(sha256
- (base32 "04xgymypnbfgf2q0d5b0hanjbjsp53f055sh1p8xlq52vyzmxdaq"))))
+ (base32 "1hcxa713wh3axa57412iy02rj0494ljvv6gpnls4lndc5h9yprbh"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -9076,34 +9076,15 @@ (define-public python-ipython
((".*import datetime") "")
((".*datetime.datetime.now\\(\\)") "")
(("%timeit") "# %timeit"))))
- (add-before 'check 'fix-tests
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "./IPython/utils/_process_posix.py"
- (("/usr/bin/env', 'which") (which "which")))
- (substitute* "./IPython/core/tests/test_inputtransformer.py"
- (("#!/usr/bin/env python")
- (string-append "#!" (which "python"))))
- ;; This test introduces a circular dependency on ipykernel
- ;; (which depends on ipython).
- (delete-file "IPython/core/tests/test_display.py")
- ;; AttributeError: module 'IPython.core' has no attribute
'formatters'
- (delete-file "IPython/core/tests/test_interactiveshell.py")
- ;; AttributeError: module 'matplotlib_inline' has no
- ;; attribute 'backend_inline'
- (delete-file "IPython/core/tests/test_pylabtools.py")))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
- ;; Make installed package available for running the tests
- (add-installed-pythonpath inputs outputs)
- (setenv "HOME" "/tmp/") ;; required by a test
- ;; We only test the core because one of the other tests
- ;; tries to import ipykernel.
- (invoke "python" "IPython/testing/iptest.py"
- "-v" "IPython/core/tests")))))))
+ (setenv "HOME" "/tmp/") ;required by some tests
+ (invoke "python" "-m" "pytest" "-vv")))))))
(inputs (list readline which))
(propagated-inputs
(list python-backcall
+ python-decorator
python-jedi
python-jinja2
python-jsonschema
@@ -9115,18 +9096,20 @@ (define-public python-ipython
python-numpydoc
python-pexpect
python-pickleshare
- python-prompt-toolkit-2
+ python-prompt-toolkit
python-pygments
python-pyzmq
python-simplegeneric
+ python-stack-data
python-terminado
python-traitlets))
(native-inputs
(list graphviz
pkg-config
- python-requests ;for tests
- python-testpath
- python-nose))
+ ;; For tests.
+ python-pytest
+ python-requests
+ python-testpath))
(home-page "https://ipython.org")
(synopsis "IPython is a tool for interactive computing in Python")
(description
@@ -9173,14 +9156,14 @@ (define-public python-ipython-documentation
(mkdir-p info)
;; (copy-file "docs/build/texinfo/ipython.info"
;; (string-append info "/ipython.info"))
- (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
- #t)))))
+ (copy-file "COPYING.rst" (string-append doc
"/COPYING.rst"))))))))
(inputs
(list python-ipython python-ipykernel))
(native-inputs
`(("python-sphinx" ,python-sphinx)
("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
- ;; FIXME: It's possible that a smaller union would work just as well.
+ ;; FIXME: It's possible that a smaller updmap.cfg would work just as
+ ;; well.
("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
texlive-capt-of
texlive-fonts-ec
--
2.34.0
- [bug#55104] [PATCH 002/232] gnu: python-astroid: Propagate python-typing-extensions., (continued)
- [bug#55104] [PATCH 002/232] gnu: python-astroid: Propagate python-typing-extensions., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 004/232] gnu: Add python-asttokens., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 005/232] gnu: Add python-littleutils., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 003/232] gnu: Add python-pure-eval., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 015/232] gnu: Add texlive-makecmds., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 036/232] gnu: Add python-types-toml., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 048/232] gnu: python-pytest-black: Update to 0.3.12., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 008/232] gnu: python-jinja2: Update to 3.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 006/232] gnu: Add python-stack-data., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 007/232] gnu: python-traitlets: Update to 5.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699].,
Maxim Cournoyer <=
- [bug#55104] [PATCH 042/232] gnu: Add python-types-pytz., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 018/232] gnu: Add texlive-zref., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 016/232] gnu: Add texlive-csplain., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 022/232] gnu: Add python-defcon-bootstrap., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 021/232] gnu: Add python-opentype-sanitizer., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 035/232] gnu: Add python-ufonormalizer., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 032/232] gnu: Add python-fontparts., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 038/232] gnu: Add python-jaraco-context-bootstrap., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 043/232] gnu: Add python-pytest-freezegun., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 075/232] gnu: python-scipy: Update to 1.8.0 and enable parallel build., Maxim Cournoyer, 2022/04/25