depot/third_party/nixpkgs/pkgs/development/python-modules/nbclassic/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

77 lines
1.3 KiB
Nix

{ lib
, argon2-cffi
, buildPythonPackage
, fetchPypi
, ipykernel
, ipython-genutils
, jinja2
, jupyter-client
, jupyter-core
, jupyter-server
, nbconvert
, nbformat
, nest-asyncio
, notebook-shim
, prometheus-client
, pytest-jupyter
, pytest-tornasync
, pytestCheckHook
, pythonOlder
, pyzmq
, send2trash
, terminado
, tornado
, traitlets
}:
buildPythonPackage rec {
pname = "nbclassic";
version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-CuEesjGUVdgFWWvzIDNs2pVUtB2Zq5o8Mb+BgL/6MOM=";
};
propagatedBuildInputs = [
argon2-cffi
ipykernel
ipython-genutils
jinja2
jupyter-client
jupyter-core
jupyter-server
nbconvert
nbformat
nest-asyncio
notebook-shim
prometheus-client
pyzmq
send2trash
terminado
tornado
traitlets
];
nativeCheckInputs = [
pytest-jupyter
pytest-tornasync
pytestCheckHook
];
pythonImportsCheck = [
"nbclassic"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Jupyter lab environment notebook server extension";
homepage = "https://github.com/jupyter/nbclassic";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ elohmeier ];
};
}