1{ lib, buildPythonPackage, fetchPypi, pythonOlder,
2 async_generator, traitlets, nbformat, nest-asyncio, jupyter-client,
3 pytest, xmltodict, nbconvert, ipywidgets
4, doCheck ? true
5}:
6
7buildPythonPackage rec {
8 pname = "nbclient";
9 version = "0.5.8";
10 disabled = pythonOlder "3.6";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-NPUsycuDGl2MzXAxU341THXcYaJEh/mYcS0Sid4yCiU=";
15 };
16
17 inherit doCheck;
18 checkInputs = [ pytest xmltodict nbconvert ipywidgets ];
19 propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ];
20
21 postFixup = ''
22 # Remove until fixed by upstream
23 # https://github.com/jupyter/nbclient/pull/173#issuecomment-968760082
24 rm $out/bin/.jupyter-run-wrapped
25 rm $out/bin/jupyter-run
26 '';
27
28 meta = with lib; {
29 homepage = "https://github.com/jupyter/nbclient";
30 description = "A client library for executing notebooks";
31 license = licenses.bsd3;
32 maintainers = [ maintainers.erictapen ];
33 };
34}