summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/patches
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-06-30 22:30:30 +0200
committerTimo Kaufmann <timokau@zoho.com>2018-06-30 22:30:30 +0200
commit70ba6957773d1a6650610d4167edd200c2382879 (patch)
treee28d384e31a935246a4cbd875b01ed9d230702a2 /pkgs/applications/science/math/sage/patches
parent398dad270a0f23fd6e96c26b5f13805e16fbb66f (diff)
downloadnixlib-70ba6957773d1a6650610d4167edd200c2382879.tar
nixlib-70ba6957773d1a6650610d4167edd200c2382879.tar.gz
nixlib-70ba6957773d1a6650610d4167edd200c2382879.tar.bz2
nixlib-70ba6957773d1a6650610d4167edd200c2382879.tar.lz
nixlib-70ba6957773d1a6650610d4167edd200c2382879.tar.xz
nixlib-70ba6957773d1a6650610d4167edd200c2382879.tar.zst
nixlib-70ba6957773d1a6650610d4167edd200c2382879.zip
sage: replace JUPYTER_PATH patch by upstream patch
The patch was replaced by a better upstream patch that doesn't mvoe the
jupyter dir to the user's home.
Diffstat (limited to 'pkgs/applications/science/math/sage/patches')
-rw-r--r--pkgs/applications/science/math/sage/patches/test-in-tmpdir.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/patches/test-in-tmpdir.patch b/pkgs/applications/science/math/sage/patches/test-in-tmpdir.patch
new file mode 100644
index 000000000000..febab3702771
--- /dev/null
+++ b/pkgs/applications/science/math/sage/patches/test-in-tmpdir.patch
@@ -0,0 +1,31 @@
+diff --git a/src/sage/repl/ipython_kernel/install.py b/src/sage/repl/ipython_kernel/install.py
+index aa23c8405d..8a87de0591 100644
+--- a/src/sage/repl/ipython_kernel/install.py
++++ b/src/sage/repl/ipython_kernel/install.py
+@@ -112,7 +112,7 @@ class SageKernelSpec(object):
+         EXAMPLES::
+ 
+             sage: from sage.repl.ipython_kernel.install import SageKernelSpec
+-            sage: spec = SageKernelSpec()
++            sage: spec = SageKernelSpec(prefix = tmp_dir())
+             sage: spec.use_local_mathjax()
+             sage: mathjax = os.path.join(spec.nbextensions_dir, 'mathjax')
+             sage: os.path.isdir(mathjax)
+@@ -129,7 +129,7 @@ class SageKernelSpec(object):
+         EXAMPLES::
+ 
+             sage: from sage.repl.ipython_kernel.install import SageKernelSpec
+-            sage: spec = SageKernelSpec()
++            sage: spec = SageKernelSpec(prefix = tmp_dir())
+             sage: spec.use_local_jsmol()
+             sage: jsmol = os.path.join(spec.nbextensions_dir, 'jsmol')
+             sage: os.path.isdir(jsmol)
+@@ -146,7 +146,7 @@ class SageKernelSpec(object):
+         EXAMPLES::
+ 
+             sage: from sage.repl.ipython_kernel.install import SageKernelSpec
+-            sage: spec = SageKernelSpec()
++            sage: spec = SageKernelSpec(prefix = tmp_dir())
+             sage: spec.use_local_threejs()
+             sage: threejs = os.path.join(spec.nbextensions_dir, 'threejs')
+             sage: os.path.isdir(threejs)