2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, notebook
|
|
|
|
, pythonOlder
|
|
|
|
, jupyter_server
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-tornasync
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbclassic";
|
|
|
|
version = "0.2.6";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
# tests only on github
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyterlab";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-stp0LZJAOCrnObvJIPEVt8mMb8yL29nlHECypbTg3ec=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jupyter_server notebook ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-tornasync
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter lab environment notebook server extension.";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://github.com/jupyterlab/nbclassic";
|
|
|
|
maintainers = [ maintainers.elohmeier ];
|
|
|
|
};
|
|
|
|
}
|