pkgs/vpython-jupyter: init with dependencies

This commit is contained in:
Infinidoge 2025-01-19 13:56:07 -05:00
parent e2f89e5e16
commit 903800fb0b
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E
8 changed files with 9298 additions and 2 deletions

View file

@ -0,0 +1,68 @@
{ buildPythonPackage
, fetchFromGitHub
, yarnConfigHook
, fetchYarnDeps
, hatchling
, hatch-jupyter-builder
, nodejs
, jupyterlab
, aiohttp
, importlib-metadata
, jupyter-server
, simpervisor
, tornado
, traitlets
}:
buildPythonPackage {
pname = "jupyter-server-proxy";
version = "4.4.1-0.dev";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterhub";
repo = "jupyter-server-proxy";
rev = "44db8eec5b0fb7f4f842f3f30b9c17b5ed2ceec5";
hash = "sha256-AQr14CK/aT5rB46jmGzEATI6R/QoMt7RKUBSnoQuDzE=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = ./yarn.lock;
hash = "sha256-9zErE3SFrt7O7nKzRSX5Lup3z7b1c8GSCAMpF7hkiOU=";
};
nativeBuildInputs = [
yarnConfigHook
nodejs
];
build-system = [
hatchling
hatch-jupyter-builder
jupyterlab
];
dependencies = [
aiohttp
importlib-metadata
jupyter-server
simpervisor
tornado
traitlets
];
preConfigure = ''
substituteInPlace labextension/package.json \
--replace-fail 'jlpm' 'yarn'
pushd labextension
cp ${./yarn.lock} yarn.lock
'';
preBuild = ''
# Generate the jupyterlab extension files
yarn --offline run build:prod
popd
'';
}

File diff suppressed because it is too large Load diff