1{ lib 2, buildPythonPackage 3, fetchPypi 4, ansiwrap 5, click 6, future 7, pyyaml 8, nbformat 9, nbconvert 10, nbclient 11, six 12, tqdm 13, jupyter-client 14, requests 15, entrypoints 16, tenacity 17, futures ? null 18, black 19, backports_tempfile 20, isPy27 21, pytest 22, pytest-cov 23, pytest-mock 24}: 25 26buildPythonPackage rec { 27 pname = "papermill"; 28 version = "2.3.3"; 29 30 src = fetchPypi { 31 inherit pname version; 32 sha256 = "349aecd526c15c39f73a08df836467e2fead877c474d82c7df349f27ad272525"; 33 }; 34 35 propagatedBuildInputs = [ 36 ansiwrap 37 click 38 future 39 pyyaml 40 nbformat 41 nbconvert 42 nbclient 43 six 44 tqdm 45 jupyter-client 46 requests 47 entrypoints 48 tenacity 49 black 50 ] ++ lib.optionals isPy27 [ 51 futures 52 backports_tempfile 53 ]; 54 55 checkInputs = [ 56 pytest 57 pytest-cov 58 pytest-mock 59 ]; 60 61 checkPhase = '' 62 HOME=$(mktemp -d) pytest 63 ''; 64 65 # the test suite depends on cloud resources azure/aws 66 doCheck = false; 67 68 meta = with lib; { 69 description = "Parametrize and run Jupyter and nteract Notebooks"; 70 homepage = "https://github.com/nteract/papermill"; 71 license = licenses.bsd3; 72 maintainers = [ maintainers.costrouc ]; 73 }; 74}