mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-jupyter-core: Improve package.
* gnu/packages/python-xyz.scm (python-jupyter-core): Use G-expressions. Fix indentation. [arguments] <test-flags>: Skip test requiring python-pip; refactor with STRING-JOIN. [native-inputs]: Remove python-pip, python-pre-commit, and python-pytest-cov. Change-Id: I677c0c7dd6e38fde126c5b69bd1b901999f8cfce
This commit is contained in:
parent
e20c85cc3e
commit
2c358fcdf1
1 changed files with 39 additions and 41 deletions
|
@ -14460,53 +14460,51 @@ container data structures in Python).")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
#:test-flags
|
||||||
'(list "-k"
|
#~(list "-k" (string-join
|
||||||
(string-append
|
;; XXX: These tests fail with "ModuleNotFoundError: No
|
||||||
;; XXX: These tests fail with "ModuleNotFoundError: No
|
;; module named 'jupyter_core'".
|
||||||
;; module named 'jupyter_core'".
|
(list "not test_argv0"
|
||||||
"not test_argv0"
|
"test_path_priority "
|
||||||
" and not test_path_priority "
|
"test_not_on_path"
|
||||||
" and not test_not_on_path"
|
;; These fail with: An incompatible sibling of
|
||||||
|
;; 'AsyncTornadoApp' is already instantiated as
|
||||||
;; These fail with: An incompatible sibling of 'AsyncTornadoApp'
|
;; singleton: SyncTornadoApp
|
||||||
;; is already instantiated as singleton: SyncTornadoApp
|
"test_async_app"
|
||||||
" and not test_async_app"
|
"test_async_tornado_app"
|
||||||
" and not test_async_tornado_app"
|
;; Fails with a deprecation warning
|
||||||
|
"test_sync_tornado_run"
|
||||||
;; Fails with a deprecation warning
|
;; Expecting pip in the PATH.
|
||||||
" and not test_sync_tornado_run"))
|
"test_troubleshoot")
|
||||||
|
" and not "))
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'pre-check
|
;; Some tests write to $HOME.
|
||||||
;; Some tests write to $HOME.
|
(add-before 'check 'pre-check
|
||||||
(lambda _ (setenv "HOME" "/tmp")))
|
(lambda _ (setenv "HOME" "/tmp")))
|
||||||
;; Migration is running whenever etc/jupyter exists, but the
|
;; Migration is running whenever etc/jupyter exists, but the
|
||||||
;; Guix-managed directory will never contain any migratable IPython
|
;; Guix-managed directory will never contain any migratable IPython
|
||||||
;; config files and cannot be written to anyway, so just pretend we
|
;; config files and cannot be written to anyway, so just pretend we
|
||||||
;; already did that.
|
;; already did that.
|
||||||
(add-after 'install 'disable-migration
|
(add-after 'install 'disable-migration
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
|
(mkdir-p (string-append #$output "/etc/jupyter"))
|
||||||
(invoke "touch"
|
(invoke "touch" (string-append #$output "/etc/jupyter/migrated")))))))
|
||||||
(string-append
|
(native-inputs
|
||||||
(assoc-ref outputs "out")
|
(list python-hatchling
|
||||||
"/etc/jupyter/migrated")))))))
|
python-pytest
|
||||||
(propagated-inputs (list python-platformdirs python-traitlets))
|
python-pytest-timeout))
|
||||||
(native-inputs (list python-hatchling
|
(propagated-inputs
|
||||||
python-pip
|
(list python-platformdirs
|
||||||
python-pre-commit
|
python-traitlets))
|
||||||
python-pytest
|
|
||||||
python-pytest-cov
|
|
||||||
python-pytest-timeout))
|
|
||||||
;; This package provides the `jupyter` binary and thus also exports the
|
;; This package provides the `jupyter` binary and thus also exports the
|
||||||
;; search paths.
|
;; search paths.
|
||||||
(native-search-paths
|
(native-search-paths
|
||||||
(list (search-path-specification
|
(list (search-path-specification
|
||||||
(variable "JUPYTER_CONFIG_PATH")
|
(variable "JUPYTER_CONFIG_PATH")
|
||||||
(files '("etc/jupyter")))
|
(files '("etc/jupyter")))
|
||||||
(search-path-specification
|
(search-path-specification
|
||||||
(variable "JUPYTER_PATH")
|
(variable "JUPYTER_PATH")
|
||||||
(files '("share/jupyter")))))
|
(files '("share/jupyter")))))
|
||||||
(home-page "https://jupyter.org/")
|
(home-page "https://jupyter.org/")
|
||||||
(synopsis "Jupyter base package")
|
(synopsis "Jupyter base package")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue