git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit70ba6957773d1a6650610d4167edd200c2382879 authorTimo Kaufmann <timokau@zoho.com> dateSat 30 Jun 2018, 22:30 (8 years ago) parent398dad2
2 files changed+37−3
pkgs/applications/science/math/sage/patches/test-in-tmpdir.patch+31 pkgs/applications/science/math/sage/sage-src.nix+6−3
pkgs/applications/science/math/sage/patches/test-in-tmpdir.patchnew file+31
@@ -0,0 +1,31 @@
1+diff --git a/src/sage/repl/ipython_kernel/install.py b/src/sage/repl/ipython_kernel/install.py
2+index aa23c8405d..8a87de0591 100644
3+--- a/src/sage/repl/ipython_kernel/install.py
4++++ b/src/sage/repl/ipython_kernel/install.py
5+@@ -112,7 +112,7 @@ class SageKernelSpec(object):
6+ EXAMPLES::
7+
8+ sage: from sage.repl.ipython_kernel.install import SageKernelSpec
9+- sage: spec = SageKernelSpec()
10++ sage: spec = SageKernelSpec(prefix = tmp_dir())
11+ sage: spec.use_local_mathjax()
12+ sage: mathjax = os.path.join(spec.nbextensions_dir, 'mathjax')
13+ sage: os.path.isdir(mathjax)
14+@@ -129,7 +129,7 @@ class SageKernelSpec(object):
15+ EXAMPLES::
16+
17+ sage: from sage.repl.ipython_kernel.install import SageKernelSpec
18+- sage: spec = SageKernelSpec()
19++ sage: spec = SageKernelSpec(prefix = tmp_dir())
20+ sage: spec.use_local_jsmol()
21+ sage: jsmol = os.path.join(spec.nbextensions_dir, 'jsmol')
22+ sage: os.path.isdir(jsmol)
23+@@ -146,7 +146,7 @@ class SageKernelSpec(object):
24+ EXAMPLES::
25+
26+ sage: from sage.repl.ipython_kernel.install import SageKernelSpec
27+- sage: spec = SageKernelSpec()
28++ sage: spec = SageKernelSpec(prefix = tmp_dir())
29+ sage: spec.use_local_threejs()
30+ sage: threejs = os.path.join(spec.nbextensions_dir, 'threejs')
31+ sage: os.path.isdir(threejs)
pkgs/applications/science/math/sage/sage-src.nix+6−3
@@ -27,11 +27,14 @@ stdenv.mkDerivation rec {
2727 })
2828
2929 # https://trac.sagemath.org/ticket/25328
30+ # https://trac.sagemath.org/ticket/25546
31+ # https://trac.sagemath.org/ticket/25722
3032 (fetchpatch {
31− name = "respect-jupyter-path.patch";
32− url = "https://git.sagemath.org/sage.git/patch?id2=8bdc326ba57d1bb9664f63cf165a9e9920cc1afc&id=029123097d79f2c67bca2d725c470ef667a88ca2";
33− sha256 = "0qw9p541ip0kn2gfvn4i05a06p50f3q46847gqfjjgzxhn62znfw";
33+ name = "install-jupyter-kernel-in-correct-prefix.patch";
34+ url = "https://git.sagemath.org/sage.git/patch?id=72167b98e3f64326df6b2c78785df25539472fcc";
35+ sha256 = "0pscnjhm7r2yr2rxnv4kkkq626vwaja720lixa3m3w9rwlxll5a7";
3436 })
37+ ./patches/test-in-tmpdir.patch
3538
3639 # https://trac.sagemath.org/ticket/25358
3740 (fetchpatch {