nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 babel,
6 ipykernel,
7 ipython-genutils,
8 jupyter-packaging,
9 jupyter-server,
10 nest-asyncio,
11 notebook-shim,
12 pytest-jupyter,
13 pytest-tornasync,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "nbclassic";
19 version = "1.2.0";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-c27FBIOlRIWXHbITvpIH405R/BRMeDQ2JbaZF0I2RLo=";
25 };
26
27 build-system = [
28 babel
29 jupyter-packaging
30 jupyter-server
31 ];
32
33 dependencies = [
34 ipykernel
35 ipython-genutils
36 nest-asyncio
37 notebook-shim
38 ];
39
40 nativeCheckInputs = [
41 pytest-jupyter
42 pytest-tornasync
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "nbclassic" ];
47
48 __darwinAllowLocalNetworking = true;
49
50 meta = {
51 description = "Jupyter lab environment notebook server extension";
52 homepage = "https://github.com/jupyter/nbclassic";
53 license = with lib.licenses; [ bsd3 ];
54 };
55}