2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-04 02:13:45 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, notebook
|
|
|
|
, jsonschema
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, pytest
|
2019-11-10 09:49:27 +00:00
|
|
|
, pyjson5
|
2018-11-04 02:13:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_server";
|
2020-08-16 18:31:05 +01:00
|
|
|
version = "1.2.0";
|
2018-11-04 02:13:45 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:05 +01:00
|
|
|
sha256 = "5431d9dde96659364b7cc877693d5d21e7b80cea7ae3959ecc2b87518e5f5d8c";
|
2018-11-04 02:13:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ requests pytest ];
|
2019-11-10 09:49:27 +00:00
|
|
|
propagatedBuildInputs = [ notebook jsonschema pyjson5 ];
|
2018-11-04 02:13:45 +00:00
|
|
|
|
|
|
|
# test_listing test fails
|
|
|
|
# this is a new package and not all tests pass
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-04 02:13:45 +00:00
|
|
|
description = "JupyterLab Server";
|
2020-03-09 11:05:00 +00:00
|
|
|
homepage = "https://jupyter.org";
|
2018-11-04 02:13:45 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|