2022-06-16 17:23:12 +00:00
|
|
|
{ async_generator
|
2022-05-18 14:49:53 +00:00
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, ipykernel
|
|
|
|
, ipywidgets
|
|
|
|
, jupyter-client
|
|
|
|
, lib
|
|
|
|
, nbconvert
|
2022-05-18 14:49:53 +00:00
|
|
|
, nbformat
|
|
|
|
, nest-asyncio
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytest-asyncio
|
2022-05-18 14:49:53 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
|
|
|
, traitlets
|
2022-05-18 14:49:53 +00:00
|
|
|
, xmltodict
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
let nbclient = buildPythonPackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
pname = "nbclient";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.6.6";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-Rs4Jk4OtexB/NKM1Jo4cV87hBxXDlnX9X+4KO+pGb0E=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# circular dependencies if enabled by default
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkInputs = [
|
|
|
|
ipykernel
|
|
|
|
ipywidgets
|
|
|
|
nbconvert
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
xmltodict
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
check = nbclient.overridePythonAttrs (_: { doCheck = true; });
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/jupyter/nbclient";
|
|
|
|
description = "A client library for executing notebooks";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = [ maintainers.erictapen ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
in nbclient
|