python310Packages.papermill: add pythonImportsCheck

- disable on older Python releases
- add extra requirements
main
Fabian Affolter 2 years ago committed by GitHub
parent 90c6f12f46
commit 1f6892c38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 71
      pkgs/development/python-modules/papermill/default.nix

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

Loading…
Cancel
Save