python3Packages.jupytext: fix tests

Due to improper sandboxing, I didn't notice the failed tests while
upgrading jupytext in #121648.  The errors come from jupyter_core so
the same fix is used here as there: set $HOME to a writable directory.
This commit is contained in:
Aluísio Augusto Silva Gonçalves 2021-05-10 13:38:19 -03:00 committed by Jonathan Ringer
parent 4c201a5e2e
commit c38d70127d

View File

@ -44,7 +44,9 @@ buildPythonPackage rec {
jupyter_client
notebook
];
# pre-commit tests require a Git repository.
# Tests that use a Jupyter notebook require $HOME to be writable.
HOME = "$TMPDIR";
# Pre-commit tests expect the source directory to be a Git repository.
pytestFlagsArray = [ "--ignore-glob='tests/test_pre_commit_*.py'" ];
pythonImportsCheck = [ "jupytext" "jupytext.cli" ];