Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 74 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ stdenv, lib, buildPythonPackage, pythonOlder, fetchPypi, hatch-jupyter-builder, hatchling, jupyter-server, jupyterlab, jupyterlab-server, notebook-shim, tornado, pytest-jupyter, pytestCheckHook,}:
buildPythonPackage rec { pname = "notebook"; version = "7.2.0"; disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi { inherit pname version; hash = "sha256-NKK6SwitXRnskw23SE+3l0aheEvp4aX4IY+a+GVqFB8="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "timeout = 300" "" '';
nativeBuildInputs = [ hatch-jupyter-builder hatchling jupyterlab ];
propagatedBuildInputs = [ jupyter-server jupyterlab jupyterlab-server notebook-shim tornado ];
nativeCheckInputs = [ pytest-jupyter pytestCheckHook ];
pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" ];
env = { JUPYTER_PLATFORM_DIRS = 1; };
# Some of the tests use localhost networking. __darwinAllowLocalNetworking = true;
meta = { changelog = "https://github.com/jupyter/notebook/blob/v${version}/CHANGELOG.md"; description = "Web-based notebook environment for interactive computing"; homepage = "https://github.com/jupyter/notebook"; license = lib.licenses.bsd3; maintainers = lib.teams.jupyter.members; mainProgram = "jupyter-notebook"; };}