1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, hypothesis
6, setuptools-scm
7, six
8, attrs
9, py
10, setuptools
11, pytest-timeout
12, pytest-tornado
13, mock
14, tabulate
15, nbformat
16, jsonschema
17, pytestCheckHook
18, colorama
19, pygments
20, tornado
21, requests
22, gitpython
23, jupyter-server
24, jupyter-server-mathjax
25, notebook
26, jinja2
27}:
28
29buildPythonPackage rec {
30 pname = "nbdime";
31 version = "3.2.1";
32 format = "setuptools";
33
34 disabled = pythonOlder "3.6";
35
36 src = fetchPypi {
37 inherit pname version;
38 hash = "sha256-MUCaMPhI/8azJUBpfoLVoKG4TcwycWynTni8xLRXxFM=";
39 };
40
41 nativeBuildInputs = [
42 setuptools-scm
43 ];
44
45 propagatedBuildInputs = [
46 attrs
47 py
48 setuptools
49 six
50 jupyter-server-mathjax
51 nbformat
52 colorama
53 pygments
54 tornado
55 requests
56 gitpython
57 notebook
58 jinja2
59 ];
60
61 nativeCheckInputs = [
62 hypothesis
63 pytest-timeout
64 pytest-tornado
65 jsonschema
66 mock
67 tabulate
68 pytestCheckHook
69 ];
70
71 disabledTests = [
72 "test_apply_filter_no_repo"
73 "test_diff_api_checkpoint"
74 "test_filter_cmd_invalid_filter"
75 "test_inline_merge_source_add"
76 "test_inline_merge_source_patches"
77 "test_inline_merge_source_replace"
78 "test_inline_merge_cells_insertion"
79 "test_inline_merge_cells_replacement"
80 "test_interrogate_filter_no_repo"
81 "test_merge_input_strategy_inline"
82 ];
83
84 __darwinAllowLocalNetworking = true;
85
86 pythonImportsCheck = [
87 "nbdime"
88 ];
89
90 meta = with lib; {
91 homepage = "https://github.com/jupyter/nbdime";
92 description = "Tools for diffing and merging of Jupyter notebooks.";
93 license = licenses.bsd3;
94 maintainers = with maintainers; [ tbenst ];
95 };
96}