From c047171df6b1790d0a8776099cfe55059c8ac4e2 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Tue, 10 May 2022 21:57:23 +0000 Subject: [PATCH] python39Packages.nbclient.passthru.tests.check: fix tests --- .../python-modules/nbclient/default.nix | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/nbclient/default.nix b/pkgs/development/python-modules/nbclient/default.nix index 7311384229aa..84fe03be605b 100644 --- a/pkgs/development/python-modules/nbclient/default.nix +++ b/pkgs/development/python-modules/nbclient/default.nix @@ -1,16 +1,18 @@ -{ lib +{ async_generator , buildPythonPackage -, fetchPypi -, pythonOlder -, async_generator -, traitlets +, fetchFromGitHub +, ipykernel +, ipywidgets +, jupyter-client +, lib +, nbconvert , nbformat , nest-asyncio -, jupyter-client +, pytest-asyncio , pytestCheckHook +, pythonOlder +, traitlets , xmltodict -, nbconvert -, ipywidgets }: let nbclient = buildPythonPackage rec { @@ -20,9 +22,11 @@ let nbclient = buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-uAcm/B+4mg6Pi+HnfijQAmsejtkLwUPIoMdiLk+M3Z4="; + src = fetchFromGitHub { + owner = "jupyter"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-ofyJNJeNkXbZ9qHLTuzJ13PgEXU9lDQ9NkT4nG/R8Ic="; }; propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ]; @@ -30,7 +34,14 @@ let nbclient = buildPythonPackage rec { # circular dependencies if enabled by default doCheck = false; - checkInputs = [ pytestCheckHook xmltodict nbconvert ipywidgets ]; + checkInputs = [ + ipykernel + ipywidgets + nbconvert + pytest-asyncio + pytestCheckHook + xmltodict + ]; preCheck = '' export HOME=$(mktemp -d)