1{
2 lib,
3 buildPythonPackage,
4 fastcore,
5 fetchPypi,
6 ipython,
7 pythonOlder,
8 setuptools,
9 traitlets,
10}:
11
12buildPythonPackage rec {
13 pname = "execnb";
14 version = "0.1.14";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-uofpVYCb0zMYqhMxT/TfkLQku0VWdBwtzJDHoovIfd0=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 fastcore
28 ipython
29 traitlets
30 ];
31
32 # no real tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "execnb" ];
36
37 meta = with lib; {
38 description = "Execute a jupyter notebook, fast, without needing jupyter";
39 homepage = "https://github.com/fastai/execnb";
40 changelog = "https://github.com/fastai/execnb/releases/tag/${version}";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ rxiao ];
43 mainProgram = "exec_nb";
44 };
45}