jupyter updates 2025-01-18 (#374760)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
flit-core,
|
||||
filetype,
|
||||
ipykernel,
|
||||
python,
|
||||
pexpect,
|
||||
@@ -12,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bash-kernel";
|
||||
version = "0.9.3";
|
||||
version = "0.10.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "bash_kernel";
|
||||
inherit version;
|
||||
hash = "sha256-n3oDgRyn2csfv/gIIjfPBFC5cYIlL9C4BYeha2XmbVg=";
|
||||
hash = "sha256-LtWgpBbEGNHXUecVBb1siJ4SFXREtQxCh6aF2ndcKMo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -28,9 +29,10 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
build-system = [ flit-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
filetype
|
||||
ipykernel
|
||||
pexpect
|
||||
];
|
||||
@@ -58,11 +60,11 @@ buildPythonPackage rec {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Bash Kernel for Jupyter";
|
||||
homepage = "https://github.com/takluyver/bash_kernel";
|
||||
changelog = "https://github.com/takluyver/bash_kernel/releases/tag/${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ zimbatm ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ zimbatm ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupysql";
|
||||
version = "0.10.16";
|
||||
version = "0.10.17";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
@@ -45,7 +45,7 @@ buildPythonPackage rec {
|
||||
owner = "ploomber";
|
||||
repo = "jupysql";
|
||||
tag = version;
|
||||
hash = "sha256-TIISiGvspRG0d/4nEyi8Tiu0y80D1Rf8puDEkGIeA08=";
|
||||
hash = "sha256-0lrcNKDKmM3Peodc9ZzgqkzwPHPLMxxXHAj4OOKWZxA=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [ "sqlalchemy" ];
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
pythonOlder,
|
||||
|
||||
# build
|
||||
@@ -12,6 +13,8 @@
|
||||
python-json-logger,
|
||||
pyyaml,
|
||||
referencing,
|
||||
rfc3339-validator,
|
||||
rfc3986-validator,
|
||||
traitlets,
|
||||
|
||||
# optionals
|
||||
@@ -26,25 +29,34 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter-events";
|
||||
version = "0.10.0";
|
||||
version = "0.11.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyter";
|
||||
repo = "jupyter_events";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-8aps8aNgXw+XbDgtCvWw+Ij1Cm1N0G+wcL35ySkofOk=";
|
||||
hash = "sha256-e+BxJc/i5lpljvv6Uwqwrog+nLJ4NOBSqd47Q7DELOE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ hatchling ];
|
||||
patches = [
|
||||
# https://github.com/jupyter/jupyter_events/pull/110
|
||||
(fetchpatch2 {
|
||||
name = "python-json-logger-compatibility.patch";
|
||||
url = "https://github.com/jupyter/jupyter_events/commit/6704ea630522f44542d83608f750da0068e41443.patch";
|
||||
hash = "sha256-PfmOlbXRFdQxhM3SngjjUNsiueuUfCO7xlyLDGSnzj4=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
jsonschema
|
||||
python-json-logger
|
||||
pyyaml
|
||||
referencing
|
||||
rfc3339-validator
|
||||
rfc3986-validator
|
||||
traitlets
|
||||
] ++ jsonschema.optional-dependencies.format-nongpl;
|
||||
|
||||
@@ -67,12 +79,12 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "jupyter_events" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}";
|
||||
description = "Configurable event system for Jupyter applications and extensions";
|
||||
mainProgram = "jupyter-events";
|
||||
homepage = "https://github.com/jupyter/jupyter_events";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = lib.teams.jupyter.members;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,22 +35,22 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter-server";
|
||||
version = "2.14.2";
|
||||
version = "2.15.0";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "jupyter_server";
|
||||
inherit version;
|
||||
hash = "sha256-ZglQIaqWOM7SdsJIsdgYYuTFDyktV1kgu+lg3hxWsSs=";
|
||||
hash = "sha256-nURrhpe09zN6G3zcrEB3i6vdk7phS21oqxwMkY8cQIQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
hatch-jupyter-builder
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
argon2-cffi
|
||||
jinja2
|
||||
tornado
|
||||
@@ -74,6 +74,8 @@ buildPythonPackage rec {
|
||||
# https://github.com/NixOS/nixpkgs/issues/299427
|
||||
stripExclude = lib.optionals stdenv.hostPlatform.isDarwin [ "favicon.ico" ];
|
||||
|
||||
pythonImportsCheck = [ "jupyter_server" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
ipykernel
|
||||
pytestCheckHook
|
||||
@@ -123,12 +125,12 @@ buildPythonPackage rec {
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
changelog = "https://github.com/jupyter-server/jupyter_server/blob/v${version}/CHANGELOG.md";
|
||||
description = "Backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
|
||||
mainProgram = "jupyter-server";
|
||||
homepage = "https://github.com/jupyter-server/jupyter_server";
|
||||
license = licenses.bsdOriginal;
|
||||
license = lib.licenses.bsdOriginal;
|
||||
maintainers = lib.teams.jupyter.members;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyterhub-ldapauthenticator";
|
||||
version = "2.0.1";
|
||||
version = "2.0.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyterhub";
|
||||
repo = "ldapauthenticator";
|
||||
tag = version;
|
||||
hash = "sha256-pb1d0dqu3VGCsuibpYgncbqCM9fz09yyoKGcKb14f4k=";
|
||||
hash = "sha256-xixgry/++E6RimB8wo1NF8SsfzxKL1ZlNQVrlBhQ674=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -6,29 +6,32 @@
|
||||
hatchling,
|
||||
async-lru,
|
||||
httpx,
|
||||
packaging,
|
||||
tornado,
|
||||
importlib-metadata,
|
||||
ipykernel,
|
||||
jinja2,
|
||||
jupyter-core,
|
||||
jupyter-lsp,
|
||||
jupyterlab-server,
|
||||
jupyter-server,
|
||||
jupyterlab-server,
|
||||
notebook-shim,
|
||||
jinja2,
|
||||
packaging,
|
||||
setuptools,
|
||||
tomli,
|
||||
tornado,
|
||||
traitlets,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyterlab";
|
||||
version = "4.2.5";
|
||||
version = "4.3.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-rn86G4y4i09VAJznn6fAb5nXDNY2Ae5KqRgV0FT0b3U=";
|
||||
hash = "sha256-8LubCaBHZuNCPMzC/CMWmqL/7c34cT6eD7M8rAtoWdA=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -36,19 +39,24 @@ buildPythonPackage rec {
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
async-lru
|
||||
httpx
|
||||
packaging
|
||||
tornado
|
||||
ipykernel
|
||||
jupyter-core
|
||||
jupyter-lsp
|
||||
jupyterlab-server
|
||||
jupyter-server
|
||||
notebook-shim
|
||||
jinja2
|
||||
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
dependencies =
|
||||
[
|
||||
async-lru
|
||||
httpx
|
||||
ipykernel
|
||||
jinja2
|
||||
jupyter-core
|
||||
jupyter-lsp
|
||||
jupyter-server
|
||||
jupyterlab-server
|
||||
notebook-shim
|
||||
packaging
|
||||
setuptools
|
||||
tornado
|
||||
traitlets
|
||||
]
|
||||
++ lib.optionals (pythonOlder "3.11") [ tomli ]
|
||||
++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--set"
|
||||
|
||||
@@ -2,47 +2,47 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
bokeh,
|
||||
ipython,
|
||||
matplotlib,
|
||||
numpy,
|
||||
nbconvert,
|
||||
nbformat,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "livelossplot";
|
||||
version = "0.5.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "0.5.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stared";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-YU8vX4SubI6txmC/i5fOjcvWfuDFm8+SPmie8Eb1qRs=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-qC1FBFJyf2IlDIffJ5Xs89WcN/GFA/8maODhc1u2xhA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
bokeh
|
||||
ipython
|
||||
matplotlib
|
||||
numpy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "livelossplot" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
ipython
|
||||
nbconvert
|
||||
nbformat
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Live training loss plot in Jupyter for Keras, PyTorch, and others";
|
||||
homepage = "https://github.com/stared/livelossplot";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
@@ -15,14 +16,16 @@
|
||||
narwhals,
|
||||
packaging,
|
||||
psutil,
|
||||
pycrdt,
|
||||
pygments,
|
||||
pymdown-extensions,
|
||||
pyyaml,
|
||||
ruff,
|
||||
starlette,
|
||||
tomlkit,
|
||||
typing-extensions,
|
||||
uvicorn,
|
||||
websockets,
|
||||
pyyaml,
|
||||
|
||||
# tests
|
||||
versionCheckHook,
|
||||
@@ -30,18 +33,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marimo";
|
||||
version = "0.10.9";
|
||||
version = "0.10.14";
|
||||
pyproject = true;
|
||||
|
||||
# The github archive does not include the static assets
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-WoMfybvKlD8Gy2sc3/EhQZVN9WPh8eEVPlG5ksyjjGc=";
|
||||
hash = "sha256-Af8KNgKBhgm2AwCrCrSRYWutarm4Z+ftdt0mFgApcsk=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
pythonRelaxDeps = [ "websockets" ];
|
||||
pythonRelaxDeps = [
|
||||
"pycrdt"
|
||||
"websockets"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
click
|
||||
@@ -52,15 +58,16 @@ buildPythonPackage rec {
|
||||
narwhals
|
||||
packaging
|
||||
psutil
|
||||
pycrdt
|
||||
pygments
|
||||
pymdown-extensions
|
||||
pyyaml
|
||||
ruff
|
||||
starlette
|
||||
tomlkit
|
||||
uvicorn
|
||||
websockets
|
||||
pyyaml
|
||||
];
|
||||
] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
|
||||
|
||||
pythonImportsCheck = [ "marimo" ];
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbclassic";
|
||||
version = "1.1.0";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-d7d7qF+emI+brYXfNFtRTp5kx/DoIpkqsd9KeKxk/B4=";
|
||||
hash = "sha256-c27FBIOlRIWXHbITvpIH405R/BRMeDQ2JbaZF0I2RLo=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
{
|
||||
async-generator,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
ipykernel,
|
||||
ipywidgets,
|
||||
jupyter-client,
|
||||
jupyter-core,
|
||||
lib,
|
||||
nbconvert,
|
||||
nbformat,
|
||||
nest-asyncio,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
@@ -21,26 +20,25 @@
|
||||
let
|
||||
nbclient = buildPythonPackage rec {
|
||||
pname = "nbclient";
|
||||
version = "0.10.0";
|
||||
format = "pyproject";
|
||||
version = "0.10.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyter";
|
||||
repo = pname;
|
||||
tag = "v${version}";
|
||||
hash = "sha256-8OLkpwX4Gpam9VSFUtNS41Ypxe4+2yN3ng6iVY9DSqY=";
|
||||
hash = "sha256-+qSed6yy4YVZ25GigNTap+kMaoDiMYSJO85wurbzeDs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ hatchling ];
|
||||
build-system = [ hatchling ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-generator
|
||||
traitlets
|
||||
nbformat
|
||||
nest-asyncio
|
||||
dependencies = [
|
||||
jupyter-client
|
||||
jupyter-core
|
||||
nbformat
|
||||
traitlets
|
||||
];
|
||||
|
||||
# circular dependencies if enabled by default
|
||||
@@ -66,11 +64,11 @@ let
|
||||
});
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/jupyter/nbclient";
|
||||
description = "Client library for executing notebooks";
|
||||
mainProgram = "jupyter-execute";
|
||||
license = licenses.bsd3;
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
packaging,
|
||||
pandocfilters,
|
||||
pygments,
|
||||
tinycss2,
|
||||
traitlets,
|
||||
importlib-metadata,
|
||||
flaky,
|
||||
@@ -35,14 +34,14 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "nbconvert";
|
||||
version = "7.16.4";
|
||||
version = "7.16.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-hsqRuiZrCkSNyW+mxbnZiv+r3ihns2MlhwNTaAf59/Q=";
|
||||
hash = "sha256-yDRnu1d3/fqsXru46GTzALJ39oaS7MBNbaty8thEI0Q=";
|
||||
};
|
||||
|
||||
# Add $out/share/jupyter to the list of paths that are used to search for
|
||||
@@ -56,24 +55,26 @@ buildPythonPackage rec {
|
||||
cp ${style-css} share/templates/classic/static/style.css
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ hatchling ];
|
||||
build-system = [ hatchling ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
bleach
|
||||
defusedxml
|
||||
jinja2
|
||||
jupyter-core
|
||||
jupyterlab-pygments
|
||||
markupsafe
|
||||
mistune
|
||||
nbclient
|
||||
packaging
|
||||
pandocfilters
|
||||
pygments
|
||||
tinycss2
|
||||
traitlets
|
||||
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||
dependencies =
|
||||
[
|
||||
beautifulsoup4
|
||||
bleach
|
||||
defusedxml
|
||||
jinja2
|
||||
jupyter-core
|
||||
jupyterlab-pygments
|
||||
markupsafe
|
||||
mistune
|
||||
nbclient
|
||||
packaging
|
||||
pandocfilters
|
||||
pygments
|
||||
traitlets
|
||||
]
|
||||
++ bleach.optional-dependencies.css
|
||||
++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "notebook";
|
||||
version = "7.2.2";
|
||||
version = "7.3.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-LvB9QiBCFiOtP+iBGNaHvARQBVVwzdFggUpZzzocUW4=";
|
||||
hash = "sha256-cF6DoXhfRbODvz7hPLdmgLktJPVvsMfSE2/h2FDNPKg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -26,14 +26,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycrdt-websocket";
|
||||
version = "0.15.1";
|
||||
version = "0.15.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyter-server";
|
||||
repo = "pycrdt-websocket";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-O0GRk81at8bgv+/4au8A55dZK2A28+ghy3sitAAZQBI=";
|
||||
hash = "sha256-VK4nSsxF/FbCnyS1RM/JHCPS0Omj4rvdwjzLNDq2hjk=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
Reference in New Issue
Block a user