depot/third_party/nixpkgs/pkgs/development/python-modules/nbclassic/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

59 lines
1 KiB
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 ];
maintainers = with maintainers; [ elohmeier ];
};
}