mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
71 lines
1.1 KiB
Nix
71 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ansiwrap
|
|
, click
|
|
, future
|
|
, pyyaml
|
|
, nbformat
|
|
, nbconvert
|
|
, six
|
|
, tqdm
|
|
, jupyter_client
|
|
, requests
|
|
, entrypoints
|
|
, tenacity
|
|
, futures
|
|
, backports_tempfile
|
|
, isPy27
|
|
, pytest
|
|
, pytestcov
|
|
, pytest-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "papermill";
|
|
version = "2.1.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5e599992317f761c5e0543430402b24faac89292d7770c3e20b520fa2a25f75a";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ansiwrap
|
|
click
|
|
future
|
|
pyyaml
|
|
nbformat
|
|
nbconvert
|
|
six
|
|
tqdm
|
|
jupyter_client
|
|
requests
|
|
entrypoints
|
|
tenacity
|
|
] ++ 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";
|
|
homepage = "https://github.com/nteract/papermill";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|