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