depot/third_party/nixpkgs/pkgs/development/python-modules/nbclassic/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
1,011 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
babel,
ipykernel,
ipython-genutils,
jupyter-packaging,
jupyter-server,
nest-asyncio,
notebook-shim,
pytest-jupyter,
pytest-tornasync,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "nbclassic";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-d7d7qF+emI+brYXfNFtRTp5kx/DoIpkqsd9KeKxk/B4=";
};
build-system = [
babel
jupyter-packaging
jupyter-server
];
dependencies = [
ipykernel
ipython-genutils
nest-asyncio
notebook-shim
];
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 ];
};
}