python39Packages.nbclient.passthru.tests.check: fix tests

This commit is contained in:
Samuel Ainsworth 2022-05-10 21:57:23 +00:00
parent f97ef46344
commit c047171df6

View file

@ -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)