python3Packages.jupyter-collaboration: 3.1.0 -> 4.0.2; fix tests (#406100)

authored by

Gaétan Lepage and committed by
GitHub
e0f0b8be a059c97f

+38 -54
+1 -1
pkgs/development/python-modules/jupyter-collaboration-ui/default.nix
··· 33 33 # no tests 34 34 doCheck = false; 35 35 36 - passthru.tests = jupyter-collaboration.tests; 36 + passthru.tests = jupyter-collaboration; 37 37 38 38 meta = { 39 39 description = "JupyterLab/Jupyter Notebook 7+ extension providing user interface integration for real time collaboration";
+33 -10
pkgs/development/python-modules/jupyter-collaboration/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 6 6 # build-system 7 7 hatchling, ··· 10 10 jupyter-collaboration-ui, 11 11 jupyter-docprovider, 12 12 jupyter-server-ydoc, 13 + jupyterlab, 13 14 14 15 # tests 15 - callPackage, 16 + dirty-equals, 17 + httpx-ws, 18 + pytest-jupyter, 19 + pytest-timeout, 20 + pytestCheckHook, 21 + writableTmpDirAsHomeHook, 16 22 }: 17 23 18 24 buildPythonPackage rec { 19 25 pname = "jupyter-collaboration"; 20 - version = "3.1.0"; 26 + version = "4.0.2"; 21 27 pyproject = true; 22 28 23 - src = fetchPypi { 24 - pname = "jupyter_collaboration"; 25 - inherit version; 26 - hash = "sha256-BDmG5vzdikFh342XFqk92q/smidKqbUDWEx6gORh7p8="; 29 + src = fetchFromGitHub { 30 + owner = "jupyterlab"; 31 + repo = "jupyter-collaboration"; 32 + tag = "v${version}"; 33 + hash = "sha256-BCvTtrlP45YC9G/m/e8Nvbls7AugIaQzO2Gect1EmGE="; 27 34 }; 28 35 36 + sourceRoot = "${src.name}/projects/jupyter-collaboration"; 37 + 29 38 build-system = [ hatchling ]; 30 39 31 40 dependencies = [ 32 41 jupyter-collaboration-ui 33 42 jupyter-docprovider 34 43 jupyter-server-ydoc 44 + jupyterlab 35 45 ]; 36 46 37 47 pythonImportsCheck = [ "jupyter_collaboration" ]; 38 48 39 - # no tests 40 - doCheck = false; 49 + nativeCheckInputs = [ 50 + dirty-equals 51 + httpx-ws 52 + pytest-jupyter 53 + pytest-timeout 54 + pytestCheckHook 55 + writableTmpDirAsHomeHook 56 + ]; 57 + 58 + pytestFlagsArray = [ 59 + # pytest.PytestCacheWarning: could not create cache path /build/source/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/build/source/pytest-cache-files-plraagdr' 60 + "-p" 61 + "no:cacheprovider" 62 + "$src/tests" 63 + ]; 41 64 42 - passthru.tests = callPackage ./test.nix { }; 65 + __darwinAllowLocalNetworking = true; 43 66 44 67 meta = { 45 68 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 - })
+3 -3
pkgs/development/python-modules/jupyter-docprovider/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "jupyter-docprovider"; 12 - version = "2.0.1"; 12 + version = "2.0.2"; 13 13 pyproject = true; 14 14 15 15 src = fetchPypi { 16 16 pname = "jupyter_docprovider"; 17 17 inherit version; 18 - hash = "sha256-4pyF5HDQ7dP32R+O3QN8DWtvJpQxBBbjWXaRAfs10b4="; 18 + hash = "sha256-vWgNlg6Ydw4va3DlEx3A/M9uE0t54GTrV1ljmlX44TU="; 19 19 }; 20 20 21 21 postPatch = '' ··· 33 33 # no tests 34 34 doCheck = false; 35 35 36 - passthru.tests = jupyter-collaboration.tests; 36 + passthru.tests = jupyter-collaboration; 37 37 38 38 meta = { 39 39 description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models";
+1 -1
pkgs/development/python-modules/jupyter-server-ydoc/default.nix
··· 41 41 # no tests 42 42 doCheck = false; 43 43 44 - passthru.tests = jupyter-collaboration.tests; 44 + passthru.tests = jupyter-collaboration; 45 45 46 46 meta = { 47 47 description = "Jupyter-server extension integrating collaborative shared models";