nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, async_generator 6, traitlets 7, nbformat 8, nest-asyncio 9, jupyter-client 10, pytestCheckHook 11, xmltodict 12, nbconvert 13, ipywidgets 14}: 15 16let nbclient = buildPythonPackage rec { 17 pname = "nbclient"; 18 version = "0.6.3"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-uAcm/B+4mg6Pi+HnfijQAmsejtkLwUPIoMdiLk+M3Z4="; 26 }; 27 28 propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ]; 29 30 # circular dependencies if enabled by default 31 doCheck = false; 32 33 checkInputs = [ pytestCheckHook xmltodict nbconvert ipywidgets ]; 34 35 preCheck = '' 36 export HOME=$(mktemp -d) 37 ''; 38 39 passthru.tests = { 40 check = nbclient.overridePythonAttrs (_: { doCheck = true; }); 41 }; 42 43 meta = with lib; { 44 homepage = "https://github.com/jupyter/nbclient"; 45 description = "A client library for executing notebooks"; 46 license = licenses.bsd3; 47 maintainers = [ maintainers.erictapen ]; 48 }; 49}; 50in nbclient