depot/third_party/nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix

50 lines
799 B
Nix
Raw Normal View History

{
buildPythonPackage,
fetchPypi,
setuptools,
comm,
ipykernel,
ipython,
jsonschema,
jupyterlab-widgets,
lib,
pytestCheckHook,
pytz,
traitlets,
widgetsnbextension,
}:
buildPythonPackage rec {
pname = "ipywidgets";
version = "8.1.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-hw5DsaNWVqgMGMlQO78tFoAtsctIfuxvqyfWgzgd3hc=";
};
build-system = [ setuptools ];
dependencies = [
comm
ipython
jupyterlab-widgets
traitlets
widgetsnbextension
];
nativeCheckInputs = [
ipykernel
jsonschema
pytestCheckHook
pytz
];
meta = {
description = "IPython HTML widgets for Jupyter";
homepage = "https://github.com/jupyter-widgets/ipywidgets";
license = lib.licenses.bsd3;
};
}