python3Packages.nbclassic: fix tests

This commit is contained in:
Jonathan Ringer 2022-01-20 15:03:51 -08:00 committed by Martin Weinelt
parent fb7422fda9
commit 0b8cf4a766

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, notebook
, pythonOlder
, jupyter_server
@ -23,6 +24,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ jupyter_server notebook ];
preCheck = ''
cd nbclassic
mv conftest.py tests
cd tests
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
checkInputs = [
pytestCheckHook
pytest-tornasync