2019-11-25 22:12:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ansiwrap
|
|
|
|
, click
|
|
|
|
, future
|
|
|
|
, pyyaml
|
|
|
|
, nbformat
|
|
|
|
, nbconvert
|
2020-06-25 10:44:40 +01:00
|
|
|
, nbclient
|
2019-11-25 22:12:42 +00:00
|
|
|
, six
|
|
|
|
, tqdm
|
|
|
|
, jupyter_client
|
|
|
|
, requests
|
|
|
|
, entrypoints
|
|
|
|
, tenacity
|
|
|
|
, futures
|
2020-06-25 10:44:40 +01:00
|
|
|
, black
|
2019-11-25 22:12:42 +00:00
|
|
|
, backports_tempfile
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "papermill";
|
2020-11-29 14:04:35 +00:00
|
|
|
version = "2.2.2";
|
2019-11-25 22:12:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:35 +00:00
|
|
|
sha256 = "1c452b1c5a9ab52b94c99d8b7705ae7173f6aa88a3d28a5d30cffba48a46f5b6";
|
2019-11-25 22:12:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansiwrap
|
|
|
|
click
|
|
|
|
future
|
|
|
|
pyyaml
|
|
|
|
nbformat
|
|
|
|
nbconvert
|
2020-06-25 10:44:40 +01:00
|
|
|
nbclient
|
2019-11-25 22:12:42 +00:00
|
|
|
six
|
|
|
|
tqdm
|
|
|
|
jupyter_client
|
|
|
|
requests
|
|
|
|
entrypoints
|
|
|
|
tenacity
|
2020-06-25 10:44:40 +01:00
|
|
|
black
|
2019-11-25 22:12:42 +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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nteract/papermill";
|
2019-11-25 22:12:42 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|