summary refs log tree commit diff
path: root/pkgs/development/python-modules/jupytext
diff options
context:
space:
mode:
authorAluísio Augusto Silva Gonçalves <aluisio@aasg.name>2021-05-10 13:38:19 -0300
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-11 09:20:38 -0700
commitc38d70127d345f5b52987c55005e84ad90a5cb4a (patch)
treef3e699f8d1b6ebc23365bc74bac0c866a5ce3356 /pkgs/development/python-modules/jupytext
parent4c201a5e2ed90ae68ddccd596cdce1e349fd7063 (diff)
downloadnixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar.gz
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar.bz2
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar.lz
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar.xz
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.tar.zst
nixpkgs-c38d70127d345f5b52987c55005e84ad90a5cb4a.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/jupytext')
-rw-r--r--pkgs/development/python-modules/jupytext/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix
index e3de451cfe1..0b893f7776a 100644
--- a/pkgs/development/python-modules/jupytext/default.nix
+++ b/pkgs/development/python-modules/jupytext/default.nix
@@ -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" ];