forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.jupyterlab: fix yarn.lock permissions for labextension
This commit adds a patch which fixes the following issue that affects mainly nix users only: jupyterlab/jupyterlab#7525
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkgs/development/python-modules/jupyterlab/yarn-lock-permissions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/jupyterlab/commands.py b/jupyterlab/commands.py | ||
index 154ceb307..d14485ea1 100644 | ||
--- a/jupyterlab/commands.py | ||
+++ b/jupyterlab/commands.py | ||
@@ -1248,6 +1248,8 @@ class _AppHandler(object): | ||
f.write(template) | ||
elif not osp.exists(lock_path): | ||
shutil.copy(lock_template, lock_path) | ||
+ import stat | ||
+ os.chmod(lock_path, stat.S_IWRITE | stat.S_IREAD) | ||
|
||
def _get_package_template(self, silent=False): | ||
"""Get the template the for staging package.json file. |