Skip to content

Commit

Permalink
Update: bumpup jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Mar 6, 2023
1 parent e4dac9b commit 01719d4
Show file tree
Hide file tree
Showing 3 changed files with 899 additions and 440 deletions.
4 changes: 2 additions & 2 deletions lib/jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
python ? pkgs.python3,
editablePackageSources ? {},
extraPackages ? (ps: []),
preferWheels ? false,
preferWheels ? true,
# groups ? ["devs"], # TODO: add groups after updating to latest poetry2nix. make sure to inherit below
}: let
jupyterlabEnvBase = pkgs.poetry2nix.mkPoetryEnv {
Expand Down Expand Up @@ -184,7 +184,7 @@
--set JUPYTERLAB_DIR .jupyter/lab/share/jupyter/lab \
--set JUPYTERLAB_SETTINGS_DIR ".jupyter/lab/user-settings" \
--set JUPYTERLAB_WORKSPACES_DIR ".jupyter/lab/workspaces" \
--set JUPYTER_PATH ${lib.concatStringsSep ":" kernelDerivations} \
--set JUPYTER_PATH "${lib.concatStringsSep ":" kernelDerivations}" \
--set JUPYTER_CONFIG_DIR "${jupyterDir}/config" \
--set JUPYTER_DATA_DIR ".jupyter/data" \
--set IPYTHONDIR "/path-not-set" \
Expand Down
11 changes: 1 addition & 10 deletions lib/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@ pkgs: let
});
};

# A fix is on the way soon, https://github.com/nix-community/poetry2nix/pull/787
preOverlay = final: prev: {
babel = null;
Babel = null;
babel_ = prev.babel.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [final.setuptools];
});
};
preOverlay = final: prev: {};

postOverlay = final: prev:
{}
// {
babel = prev.babel_;
Babel = prev.babel_;
testbook = prev.testbook.overridePythonAttrs (old: {
postPatch = ''
mkdir ./tmp
Expand Down
Loading

0 comments on commit 01719d4

Please sign in to comment.