0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{ async_generator
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, ipykernel
|
|
, ipywidgets
|
|
, jupyter-client
|
|
, lib
|
|
, nbconvert
|
|
, nbformat
|
|
, nest-asyncio
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, testpath
|
|
, traitlets
|
|
, xmltodict
|
|
}:
|
|
|
|
let nbclient = buildPythonPackage rec {
|
|
pname = "nbclient";
|
|
version = "0.7.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2H6Oi1tK/GrtfMTR1j12tZdRzQkFUxXzMSpfCtGPyWE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
async_generator
|
|
traitlets
|
|
nbformat
|
|
nest-asyncio
|
|
jupyter-client
|
|
];
|
|
|
|
# circular dependencies if enabled by default
|
|
doCheck = false;
|
|
|
|
checkInputs = [
|
|
ipykernel
|
|
ipywidgets
|
|
nbconvert
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
testpath
|
|
xmltodict
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
passthru.tests = {
|
|
check = nbclient.overridePythonAttrs (_: { doCheck = true; });
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jupyter/nbclient";
|
|
description = "A client library for executing notebooks";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.erictapen ];
|
|
};
|
|
};
|
|
in nbclient
|