1{
2 lib,
3 build,
4 buildPythonPackage,
5 fetchPypi,
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.4.5";
20 pyproject = true;
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-Evp67exwUVu7Dv3z85AAeTVB4CCcBHzRFXYcq+KEpj0=";
27 };
28
29 pythonRelaxDeps = [ "ipywidgets" ];
30
31 build-system = [
32 build
33 setuptools
34 ];
35
36 dependencies = [
37 astunparse
38 execnb
39 fastcore
40 ghapi
41 ipywidgets
42 pyyaml
43 watchdog
44 ];
45
46 # no real tests
47 doCheck = false;
48
49 pythonImportsCheck = [ "nbdev" ];
50
51 meta = with lib; {
52 homepage = "https://github.com/fastai/nbdev";
53 description = "Create delightful software with Jupyter Notebooks";
54 changelog = "https://github.com/fastai/nbdev/blob/${version}/CHANGELOG.md";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ rxiao ];
57 };
58}