diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix b/nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix new file mode 100644 index 000000000000..4e8377a9bd54 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix @@ -0,0 +1,53 @@ +{ buildPythonPackage +, fetchPypi +, setuptools +, wheel +, comm +, ipykernel +, ipython +, jsonschema +, jupyterlab-widgets +, lib +, pytestCheckHook +, pytz +, traitlets +, widgetsnbextension +}: + +buildPythonPackage rec { + pname = "ipywidgets"; + version = "8.1.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-0Lm0Hkm66SaoZuYTo5sPAJd0XSufHz3UBmQbSlfsQsk="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + propagatedBuildInputs = [ + 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; + maintainers = with lib.maintainers; [ fridh ]; + }; +} |