2020-12-29 08:58:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-21 00:03:51 +01:00
|
|
|
, python
|
2020-12-29 08:58:30 +01:00
|
|
|
, notebook
|
|
|
|
, pythonOlder
|
|
|
|
, jupyter_server
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-tornasync
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbclassic";
|
2022-01-14 01:58:34 +01:00
|
|
|
version = "0.3.5";
|
2021-06-21 14:41:10 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-12-29 08:58:30 +01:00
|
|
|
|
|
|
|
# tests only on github
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyterlab";
|
|
|
|
repo = pname;
|
2022-01-20 23:47:16 +01:00
|
|
|
rev = "v${version}";
|
2022-01-14 01:58:34 +01:00
|
|
|
sha256 = "1d0x7nwsaw5qjw4iaylc2sxlpiq3hlg9sy3i2nh7sn3wckwl76lc";
|
2020-12-29 08:58:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jupyter_server notebook ];
|
|
|
|
|
2022-01-21 00:03:51 +01:00
|
|
|
preCheck = ''
|
|
|
|
cd nbclassic
|
|
|
|
mv conftest.py tests
|
|
|
|
cd tests
|
|
|
|
|
|
|
|
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
|
|
'';
|
2020-12-29 08:58:30 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
|
|
|
];
|
|
|
|
|
2021-05-23 06:38:40 +02:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2020-12-29 08:58:30 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter lab environment notebook server extension.";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://github.com/jupyterlab/nbclassic";
|
|
|
|
maintainers = [ maintainers.elohmeier ];
|
|
|
|
};
|
|
|
|
}
|