depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-client/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jupyter-core
, hatchling
, python-dateutil
, pyzmq
, tornado
, traitlets
, pythonOlder
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jupyter-client";
version = "8.6.0";
pyproject = true;
src = fetchPypi {
pname = "jupyter_client";
inherit version;
hash = "sha256-BkIkS7g7R2SuYNB+AQ4V8OLSdexOkYqPe4D7vvPKYMc=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
jupyter-core
python-dateutil
pyzmq
tornado
traitlets
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
pythonImportsCheck = [
"jupyter_client"
];
# Circular dependency with ipykernel
doCheck = false;
meta = {
description = "Jupyter protocol implementation and client libraries";
homepage = "https://github.com/jupyter/jupyter_client";
changelog = "https://github.com/jupyter/jupyter_client/blob/v${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}