lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.jupyter-collaboration: 2.1.4 -> 3.0.0

Changelog: https://github.com/jupyterlab/jupyter_collaboration/blob/v3.0.0/CHANGELOG.md

+52 -44
+13 -44
pkgs/development/python-modules/jupyter-collaboration/default.nix
··· 4 4 fetchPypi, 5 5 6 6 # build-system 7 - hatch-jupyter-builder, 8 - hatch-nodejs-version, 9 7 hatchling, 10 - jupyterlab, 11 8 12 9 # dependencies 13 - jsonschema, 14 - jupyter-events, 15 - jupyter-server, 16 - jupyter-server-fileid, 17 - jupyter-ydoc, 18 - pycrdt, 19 - pycrdt-websocket, 10 + jupyter-collaboration-ui, 11 + jupyter-docprovider, 12 + jupyter-server-ydoc, 20 13 21 14 # tests 22 - pytest-jupyter, 23 - pytestCheckHook, 24 - websockets, 15 + callPackage, 25 16 }: 26 17 27 18 buildPythonPackage rec { 28 19 pname = "jupyter-collaboration"; 29 - version = "2.1.4"; 20 + version = "3.0.0"; 30 21 pyproject = true; 31 22 32 23 src = fetchPypi { 33 24 pname = "jupyter_collaboration"; 34 25 inherit version; 35 - hash = "sha256-YT3wrTQ8imuTK8zeJbwscHtawtqspf1oItGzMMfg5io="; 26 + hash = "sha256-eewAsh/EI8DV4FNWgjEhT61RUbaYE6suOAny4bf1CCw="; 36 27 }; 37 28 38 - postPatch = '' 39 - sed -i "/^timeout/d" pyproject.toml 40 - ''; 41 - 42 - build-system = [ 43 - hatch-jupyter-builder 44 - hatch-nodejs-version 45 - hatchling 46 - jupyterlab 47 - ]; 29 + build-system = [ hatchling ]; 48 30 49 31 dependencies = [ 50 - jsonschema 51 - jupyter-events 52 - jupyter-server 53 - jupyter-server-fileid 54 - jupyter-ydoc 55 - pycrdt 56 - pycrdt-websocket 57 - ]; 58 - 59 - nativeCheckInputs = [ 60 - pytest-jupyter 61 - pytestCheckHook 62 - websockets 32 + jupyter-collaboration-ui 33 + jupyter-docprovider 34 + jupyter-server-ydoc 63 35 ]; 64 36 65 37 pythonImportsCheck = [ "jupyter_collaboration" ]; 66 38 67 - preCheck = '' 68 - export HOME=$TEMP 69 - ''; 39 + # no tests 40 + doCheck = false; 70 41 71 - pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; 72 - 73 - __darwinAllowLocalNetworking = true; 42 + passthru.tests = callPackage ./test.nix { }; 74 43 75 44 meta = { 76 45 description = "JupyterLab Extension enabling Real-Time Collaboration";
+39
pkgs/development/python-modules/jupyter-collaboration/test.nix
··· 1 + { 2 + stdenvNoCC, 3 + fetchFromGitHub, 4 + jupyter-collaboration, 5 + pytest-jupyter, 6 + pytestCheckHook, 7 + websockets, 8 + }: 9 + stdenvNoCC.mkDerivation (finalAttrs: { 10 + pname = "jupyter-collaboration-test"; 11 + inherit (jupyter-collaboration) version; 12 + 13 + src = fetchFromGitHub { 14 + owner = "jupyterlab"; 15 + repo = "jupyter-collaboration"; 16 + rev = "refs/tags/v${finalAttrs.version}"; 17 + hash = "sha256-6hDYB1uC0WraB37s9EKLJF7jyFu0B3xLocuLYyKj4hs="; 18 + }; 19 + 20 + postPatch = '' 21 + substituteInPlace pyproject.toml \ 22 + --replace-fail "timeout = 300" "" 23 + ''; 24 + 25 + installPhase = '' 26 + touch $out 27 + ''; 28 + 29 + env.HOME = "$TMPDIR"; 30 + 31 + doCheck = true; 32 + 33 + nativeCheckInputs = [ 34 + jupyter-collaboration 35 + pytest-jupyter 36 + pytestCheckHook 37 + websockets 38 + ]; 39 + })