567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
1005 B
Nix
59 lines
1005 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.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-c27FBIOlRIWXHbITvpIH405R/BRMeDQ2JbaZF0I2RLo=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Jupyter lab environment notebook server extension";
|
|
homepage = "https://github.com/jupyter/nbclassic";
|
|
license = with lib.licenses; [ bsd3 ];
|
|
};
|
|
}
|