2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, ansiwrap
|
2022-08-21 13:32:41 +00:00
|
|
|
, azure-datalake-store
|
|
|
|
, azure-storage-blob
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, click
|
2022-08-21 13:32:41 +00:00
|
|
|
, entrypoints
|
|
|
|
, fetchPypi
|
|
|
|
, gcsfs
|
2020-07-18 16:06:22 +00:00
|
|
|
, nbclient
|
2022-08-21 13:32:41 +00:00
|
|
|
, nbformat
|
|
|
|
, pyarrow
|
|
|
|
, PyGithub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
|
|
|
, tenacity
|
2022-08-21 13:32:41 +00:00
|
|
|
, tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "papermill";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.4.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-b4+KmwazlnfyB8CRAMjThrz1kvDLvdqfD1DoFEVpdic=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansiwrap
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
nbformat
|
2020-07-18 16:06:22 +00:00
|
|
|
nbclient
|
2020-04-24 23:36:52 +00:00
|
|
|
tqdm
|
|
|
|
requests
|
|
|
|
entrypoints
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
azure = [
|
|
|
|
azure-datalake-store
|
|
|
|
azure-storage-blob
|
|
|
|
];
|
|
|
|
gcs = [
|
|
|
|
gcsfs
|
|
|
|
];
|
|
|
|
github = [
|
|
|
|
PyGithub
|
|
|
|
];
|
|
|
|
hdfs = [
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
s3 = [
|
|
|
|
boto3
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
# The test suite depends on cloud resources azure/aws
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"papermill"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Parametrize and run Jupyter and interact with notebooks";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nteract/papermill";
|
|
|
|
license = licenses.bsd3;
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|