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";
|
2021-02-10 22:00:00 +00:00
|
|
|
version = "2.3.2";
|
2019-11-25 22:12:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-10 22:00:00 +00:00
|
|
|
sha256 = "sha256-ptwZXypS9b7Y1CkszqOa8PMzgyS+r9VikPlhbJUDNiM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|