1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonRelaxDepsHook,
6 setuptools,
7 ipywidgets,
8 fastcore,
9 astunparse,
10 watchdog,
11 execnb,
12 ghapi,
13 pyyaml,
14 pythonOlder,
15}:
16
17buildPythonPackage rec {
18 pname = "nbdev";
19 version = "2.3.23";
20 pyproject = true;
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-+HbGHyJ2TX6qnBBPNivFVklrf+Ma2QM3u/2a67NxfIs=";
27 };
28
29 nativeBuildInputs = [ pythonRelaxDepsHook ];
30
31 pythonRelaxDeps = [ "ipywidgets" ];
32
33 build-system = [ setuptools ];
34
35 dependencies = [
36 astunparse
37 execnb
38 fastcore
39 ghapi
40 ipywidgets
41 pyyaml
42 watchdog
43 ];
44
45 # no real tests
46 doCheck = false;
47
48 pythonImportsCheck = [ "nbdev" ];
49
50 meta = with lib; {
51 homepage = "https://github.com/fastai/nbdev";
52 description = "Create delightful software with Jupyter Notebooks";
53 changelog = "https://github.com/fastai/nbdev/blob/${version}/CHANGELOG.md";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ rxiao ];
56 };
57}