From 7c2d6388022cd53622e3bb558c0c8706f7564279 Mon Sep 17 00:00:00 2001 From: Eamonn Coughlan Date: Wed, 12 Dec 2018 11:52:34 +0100 Subject: [PATCH] ipykernel: fix permissions when installing kernels --- pkgs/development/python-modules/ipykernel/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix index 43b1c9fd0349..b4daf5a6ecbb 100644 --- a/pkgs/development/python-modules/ipykernel/default.nix +++ b/pkgs/development/python-modules/ipykernel/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , ipython , jupyter_client , traitlets @@ -23,6 +24,14 @@ buildPythonPackage rec { checkInputs = [ pytest nose ]; propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ]; + # https://github.com/ipython/ipykernel/pull/377 + patches = [ + (fetchpatch { + url = "https://github.com/ipython/ipykernel/commit/a3bf849dbd368a1826deb9dfc94c2bd3e5ed04fe.patch"; + sha256 = "1yhpwqixlf98a3n620z92mfips3riw6psijqnc5jgs2p58fgs2yc"; + }) + ]; + checkPhase = '' HOME=$(mktemp -d) pytest ipykernel '';