push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# nativeBuildInputs
nodejs,
yarn-berry_3,
distutils,
# build-system
hatch-jupyter-builder,
hatchling,
jupyterlab,
# dependencies
jupyter-server,
jupyterlab-server,
notebook-shim,
tornado,
# tests
pytest-jupyter,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "notebook";
version = "7.4.4";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyter";
repo = "notebook";
tag = "v${version}";
hash = "sha256-bj4iQvm0TGBiCu9drJ8QFXsedzm/cEjevNQS6UsasNs=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "timeout = 300" ""
'';
nativeBuildInputs = [
nodejs
yarn-berry_3.yarnBerryConfigHook
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
distutils
];
missingHashes = ./missing-hashes.json;
offlineCache = yarn-berry_3.fetchYarnBerryDeps {
inherit src missingHashes;
hash = "sha256-nRaWzr5Q904KojfK0mPgLX9be82axb8Aab0SJULE7RU=";
};
build-system = [
hatch-jupyter-builder
hatchling
jupyterlab
];
dependencies = [
jupyter-server
jupyterlab
jupyterlab-server
notebook-shim
tornado
];
nativeCheckInputs = [
pytest-jupyter
pytestCheckHook
];
pytestFlags = [
"-Wignore::DeprecationWarning"
];
env = {
JUPYTER_PLATFORM_DIRS = 1;
};
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
changelog = "https://github.com/jupyter/notebook/blob/${src.tag}/CHANGELOG.md";
description = "Web-based notebook environment for interactive computing";
homepage = "https://github.com/jupyter/notebook";
license = lib.licenses.bsd3;
teams = [ lib.teams.jupyter ];
mainProgram = "jupyter-notebook";
};
}