-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jupyter updates 2024-11-02 (#353035)
- Loading branch information
Showing
11 changed files
with
236 additions
and
62 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
pkgs/development/python-modules/jupyter-collaboration-ui/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
hatchling, | ||
hatch-jupyter-builder, | ||
jupyter-collaboration, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "jupyter-collaboration-ui"; | ||
version = "1.0.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
pname = "jupyter_collaboration_ui"; | ||
inherit version; | ||
hash = "sha256-hTyUmLzRvexNTZxTv4Mbflm+OTW9j0HReLpAJuk/WnY="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-fail ', "jupyterlab>=4.0.0"' "" | ||
''; | ||
|
||
build-system = [ | ||
hatchling | ||
hatch-jupyter-builder | ||
]; | ||
|
||
pythonImportsCheck = [ "jupyter_collaboration_ui" ]; | ||
|
||
# no tests | ||
doCheck = false; | ||
|
||
passthru.tests = jupyter-collaboration.tests; | ||
|
||
meta = { | ||
description = "JupyterLab/Jupyter Notebook 7+ extension providing user interface integration for real time collaboration"; | ||
homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-collaboration-ui"; | ||
license = lib.licenses.bsd3; | ||
maintainers = lib.teams.jupyter.members; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
pkgs/development/python-modules/jupyter-collaboration/test.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
stdenvNoCC, | ||
fetchFromGitHub, | ||
jupyter-collaboration, | ||
pytest-jupyter, | ||
pytestCheckHook, | ||
websockets, | ||
}: | ||
stdenvNoCC.mkDerivation (finalAttrs: { | ||
pname = "jupyter-collaboration-test"; | ||
inherit (jupyter-collaboration) version; | ||
|
||
src = fetchFromGitHub { | ||
owner = "jupyterlab"; | ||
repo = "jupyter-collaboration"; | ||
rev = "refs/tags/v${finalAttrs.version}"; | ||
hash = "sha256-6hDYB1uC0WraB37s9EKLJF7jyFu0B3xLocuLYyKj4hs="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-fail "timeout = 300" "" | ||
''; | ||
|
||
installPhase = '' | ||
touch $out | ||
''; | ||
|
||
env.HOME = "$TMPDIR"; | ||
|
||
doCheck = true; | ||
|
||
nativeCheckInputs = [ | ||
jupyter-collaboration | ||
pytest-jupyter | ||
pytestCheckHook | ||
websockets | ||
]; | ||
}) |
44 changes: 44 additions & 0 deletions
44
pkgs/development/python-modules/jupyter-docprovider/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
hatchling, | ||
hatch-jupyter-builder, | ||
jupyter-collaboration, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "jupyter-docprovider"; | ||
version = "1.0.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
pname = "jupyter_docprovider"; | ||
inherit version; | ||
hash = "sha256-EcO3GqdbhRxawHwfSnjOHfFmYjpZy2NuuGc5CSW/xlY="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-fail ', "jupyterlab>=4.0.0"' "" | ||
''; | ||
|
||
build-system = [ | ||
hatchling | ||
hatch-jupyter-builder | ||
]; | ||
|
||
pythonImportsCheck = [ "jupyter_docprovider" ]; | ||
|
||
# no tests | ||
doCheck = false; | ||
|
||
passthru.tests = jupyter-collaboration.tests; | ||
|
||
meta = { | ||
description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models"; | ||
homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-docprovider"; | ||
license = lib.licenses.bsd3; | ||
maintainers = lib.teams.jupyter.members; | ||
}; | ||
} |
52 changes: 52 additions & 0 deletions
52
pkgs/development/python-modules/jupyter-server-ydoc/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
hatchling, | ||
jsonschema, | ||
jupyter-events, | ||
jupyter-server, | ||
jupyter-server-fileid, | ||
jupyter-ydoc, | ||
pycrdt, | ||
pycrdt-websocket, | ||
jupyter-collaboration, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "jupyter-server-ydoc"; | ||
version = "1.0.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
pname = "jupyter_server_ydoc"; | ||
inherit version; | ||
hash = "sha256-MBdSTB2gaIFbdIyPHr5+wI7aBH/Fl85ywSWxgAmjkek="; | ||
}; | ||
|
||
build-system = [ hatchling ]; | ||
|
||
dependencies = [ | ||
jsonschema | ||
jupyter-events | ||
jupyter-server | ||
jupyter-server-fileid | ||
jupyter-ydoc | ||
pycrdt | ||
pycrdt-websocket | ||
]; | ||
|
||
pythonImportsCheck = [ "jupyter_server_ydoc" ]; | ||
|
||
# no tests | ||
doCheck = false; | ||
|
||
passthru.tests = jupyter-collaboration.tests; | ||
|
||
meta = { | ||
description = "Jupyter-server extension integrating collaborative shared models"; | ||
homepage = "https://github.com/jupyterlab/jupyter-collaboration/tree/main/projects/jupyter-server-ydoc"; | ||
license = lib.licenses.bsd3; | ||
maintainers = lib.teams.jupyter.members; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 29 additions & 9 deletions
38
pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
setuptools, | ||
jupyterhub, | ||
ldap3, | ||
fetchPypi, | ||
traitlets, | ||
pytestCheckHook, | ||
pytest-asyncio, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "jupyterhub-ldapauthenticator"; | ||
version = "1.3.2"; | ||
format = "setuptools"; | ||
version = "2.0.1"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "758081bbdb28b26313bb18c9d8aa2b8fcdc9162e4d3ab196c626567e64f1ab8b"; | ||
src = fetchFromGitHub { | ||
owner = "jupyterhub"; | ||
repo = "ldapauthenticator"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-pb1d0dqu3VGCsuibpYgncbqCM9fz09yyoKGcKb14f4k="; | ||
}; | ||
|
||
# No tests implemented | ||
doCheck = false; | ||
build-system = [ setuptools ]; | ||
|
||
propagatedBuildInputs = [ | ||
dependencies = [ | ||
jupyterhub | ||
ldap3 | ||
traitlets | ||
]; | ||
|
||
pythonImportsCheck = [ "ldapauthenticator" ]; | ||
|
||
nativeCheckInputs = [ | ||
pytest-asyncio | ||
pytestCheckHook | ||
]; | ||
|
||
disabledTests = [ | ||
# touch the socket | ||
"test_allow_config" | ||
"test_ldap_auth" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Simple LDAP Authenticator Plugin for JupyterHub"; | ||
homepage = "https://github.com/jupyterhub/ldapauthenticator"; | ||
changelog = "https://github.com/jupyterhub/ldapauthenticator/blob/${version}/CHANGELOG.md"; | ||
license = licenses.bsd3; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.