2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ansiwrap
|
|
|
|
, click
|
|
|
|
, future
|
|
|
|
, pyyaml
|
|
|
|
, nbformat
|
|
|
|
, nbconvert
|
2020-07-18 16:06:22 +00:00
|
|
|
, nbclient
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
, tqdm
|
|
|
|
, jupyter_client
|
|
|
|
, requests
|
|
|
|
, entrypoints
|
|
|
|
, tenacity
|
|
|
|
, futures
|
2020-07-18 16:06:22 +00:00
|
|
|
, black
|
2020-04-24 23:36:52 +00:00
|
|
|
, backports_tempfile
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "papermill";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "5e599992317f761c5e0543430402b24faac89292d7770c3e20b520fa2a25f75a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansiwrap
|
|
|
|
click
|
|
|
|
future
|
|
|
|
pyyaml
|
|
|
|
nbformat
|
|
|
|
nbconvert
|
2020-07-18 16:06:22 +00:00
|
|
|
nbclient
|
2020-04-24 23:36:52 +00:00
|
|
|
six
|
|
|
|
tqdm
|
|
|
|
jupyter_client
|
|
|
|
requests
|
|
|
|
entrypoints
|
|
|
|
tenacity
|
2020-07-18 16:06:22 +00:00
|
|
|
black
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
futures
|
|
|
|
backports_tempfile
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
# the test suite depends on cloud resources azure/aws
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Parametrize and run Jupyter and nteract Notebooks";
|
|
|
|
homepage = "https://github.com/nteract/papermill";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|