Solution:
jupyterlabEnv = pkgs.python3.withPackages (
p: with p; [
(jupyterhub.overridePythonAttrs (previousAttrs: {
dependencies = previousAttrs.dependencies ++ [ pkgs.git ];
}))
jupyterlab
python-lsp-server
jupyterlab-git
]
);