Files
nixpkgs/pkgs/development/python-modules/papermill/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

90 lines
1.4 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
];
};
nativeCheckInputs = [
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 ];
};
}