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 = "refs/tags/${version}"; 20 hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw="; 21 }; 22 23 propagatedBuildInputs = [ nbconvert requests ]; 24 25 nativeCheckInputs = [ pytestCheckHook responses ]; 26 27 patches = [ 28 # The original setup.py file is missing commas in the install_requires list 29 ./setup-py.patch 30 ]; 31 32 JUPYTER_PATH="${nbconvert}/share/jupyter"; 33 disabledTests = [ 34 "test_post_to_confluence" 35 "test_optional_components" 36 ]; 37 38 meta = with lib; { 39 description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert"; 40 homepage = "https://github.com/Valassis-Digital-Media/nbconflux"; 41 license = licenses.bsd3; 42 maintainers = [ maintainers.arnoldfarkas ]; 43 }; 44}