nixpkgs/pkgs/development/python-modules/papermill/default.nix
Fabian Affolter 1f6892c38a
python310Packages.papermill: add pythonImportsCheck
- disable on older Python releases
- add extra requirements
2022-08-18 10:05:05 +02:00

89 lines
1.3 KiB
Nix

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