Files
nixpkgs/pkgs/development/python-modules/nbclassic/default.nix
T
2024-05-26 23:30:54 +09:00

60 lines
1.0 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 ];
};
}