1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, nbconvert
6, pytestCheckHook
7, requests
8, responses
9}:
10
11buildPythonPackage rec {
12 pname = "nbconflux";
13 version = "0.7.0";
14 disabled = isPy27; # no longer compatible with python 2 urllib
15
16 src = fetchFromGitHub {
17 owner = "Valassis-Digital-Media";
18 repo = "nbconflux";
19 rev = version;
20 sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
21 };
22
23 propagatedBuildInputs = [ nbconvert requests ];
24
25 nativeCheckInputs = [ pytestCheckHook responses ];
26
27 JUPYTER_PATH="${nbconvert}/share/jupyter";
28 disabledTests = [
29 "test_post_to_confluence"
30 "test_optional_components"
31 ];
32
33 meta = with lib; {
34 description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
35 homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
36 license = licenses.bsd3;
37 maintainers = [ maintainers.arnoldfarkas ];
38 };
39}