1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 isPy27, 6 nbconvert, 7 pytestCheckHook, 8 requests, 9 responses, 10}: 11 12buildPythonPackage rec { 13 pname = "nbconflux"; 14 version = "0.7.0"; 15 format = "setuptools"; 16 disabled = isPy27; # no longer compatible with python 2 urllib 17 18 src = fetchFromGitHub { 19 owner = "Valassis-Digital-Media"; 20 repo = "nbconflux"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw="; 23 }; 24 25 propagatedBuildInputs = [ 26 nbconvert 27 requests 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 responses 33 ]; 34 35 patches = [ 36 # The original setup.py file is missing commas in the install_requires list 37 ./setup-py.patch 38 ]; 39 40 JUPYTER_PATH = "${nbconvert}/share/jupyter"; 41 disabledTests = [ 42 "test_post_to_confluence" 43 "test_optional_components" 44 ]; 45 46 meta = with lib; { 47 description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert"; 48 mainProgram = "nbconflux"; 49 homepage = "https://github.com/Valassis-Digital-Media/nbconflux"; 50 license = licenses.bsd3; 51 maintainers = [ maintainers.arnoldfarkas ]; 52 }; 53}