2018-03-19 00:02:14 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2017-04-18 09:54:43 +00:00
|
|
|
, buildPythonPackage
|
2023-01-15 04:21:31 +00:00
|
|
|
, pythonOlder
|
2017-04-18 09:54:43 +00:00
|
|
|
, fetchPypi
|
2023-08-02 16:29:26 +00:00
|
|
|
, hatch-jupyter-builder
|
|
|
|
, hatchling
|
|
|
|
, jupyter-server
|
|
|
|
, jupyterlab
|
|
|
|
, jupyterlab_server
|
|
|
|
, notebook-shim
|
2017-04-18 09:54:43 +00:00
|
|
|
, tornado
|
2023-08-02 16:29:26 +00:00
|
|
|
, pytest-jupyter
|
2020-08-17 02:11:12 +00:00
|
|
|
, pytestCheckHook
|
2017-04-18 09:54:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "notebook";
|
2023-08-11 06:19:24 +00:00
|
|
|
version = "7.0.2";
|
2023-08-02 16:29:26 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2017-04-18 09:54:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-11 06:19:24 +00:00
|
|
|
hash = "sha256-1w1qB0GMgpvV9UM3zpk7cQUmHZAm+dP+aOm4qhog2po=";
|
2017-04-18 09:54:43 +00:00
|
|
|
};
|
|
|
|
|
2023-08-02 16:29:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "timeout = 300" ""
|
|
|
|
'';
|
2017-04-18 09:54:43 +00:00
|
|
|
|
2023-08-02 16:29:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-jupyter-builder
|
|
|
|
hatchling
|
|
|
|
jupyterlab
|
|
|
|
];
|
2017-04-18 09:54:43 +00:00
|
|
|
|
2017-10-23 11:40:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-08-02 16:29:26 +00:00
|
|
|
jupyter-server
|
|
|
|
jupyterlab
|
|
|
|
jupyterlab_server
|
|
|
|
notebook-shim
|
2023-05-13 14:16:39 +00:00
|
|
|
tornado
|
2017-10-23 11:40:02 +00:00
|
|
|
];
|
2017-04-18 09:54:43 +00:00
|
|
|
|
2023-08-02 16:29:26 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-jupyter
|
|
|
|
pytestCheckHook
|
2020-08-17 02:11:12 +00:00
|
|
|
];
|
2017-04-18 09:54:43 +00:00
|
|
|
|
2023-08-07 19:46:52 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W" "ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2023-08-02 16:29:26 +00:00
|
|
|
env = {
|
|
|
|
JUPYTER_PLATFORM_DIRS = 1;
|
|
|
|
};
|
2021-12-03 20:10:34 +00:00
|
|
|
|
2019-09-14 19:20:54 +00:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2017-04-18 09:54:43 +00:00
|
|
|
meta = {
|
2023-08-02 16:29:26 +00:00
|
|
|
changelog = "https://github.com/jupyter/notebook/blob/v${version}/CHANGELOG.md";
|
|
|
|
description = "Web-based notebook environment for interactive computing";
|
2023-06-29 15:43:17 +00:00
|
|
|
homepage = "https://github.com/jupyter/notebook";
|
2017-04-18 09:54:43 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2023-08-02 16:29:26 +00:00
|
|
|
maintainers = lib.teams.jupyter.members;
|
2023-05-13 14:16:39 +00:00
|
|
|
mainProgram = "jupyter-notebook";
|
2017-04-18 09:54:43 +00:00
|
|
|
};
|
2017-10-23 11:40:02 +00:00
|
|
|
}
|