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