diff --git a/pkgs/development/python-modules/ipytablewidgets/default.nix b/pkgs/development/python-modules/ipytablewidgets/default.nix new file mode 100644 index 000000000000..6e05a3a36f0a --- /dev/null +++ b/pkgs/development/python-modules/ipytablewidgets/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, ipywidgets +, jupyter-packaging +, jupyterlab +, lz4 +, numpy +, pandas +, setuptools +, traitlets +, traittypes +, wheel +}: + +buildPythonPackage rec { + pname = "ipytablewidgets"; + version = "0.3.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-14vIih+r/PHLxhgG29YtwuosSBLpewD2CluWpH2+pLc="; + }; + + nativeBuildInputs = [ + jupyter-packaging + jupyterlab + setuptools + wheel + ]; + + propagatedBuildInputs = [ + ipywidgets + lz4 + numpy + pandas + traitlets + traittypes + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "ipytablewidgets" ]; + + meta = with lib; { + description = "Traitlets and widgets to efficiently data tables (e.g. Pandas DataFrame) using the jupyter notebook"; + homepage = "https://github.com/progressivis/ipytablewidgets"; + license = licenses.bsd3; + maintainers = with maintainers; [ natsukium ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 870e3ef3bda8..ae5a5da09ff4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5217,6 +5217,8 @@ self: super: with self; { ipyparallel = callPackage ../development/python-modules/ipyparallel { }; + ipytablewidgets = callPackage ../development/python-modules/ipytablewidgets { }; + ipython_genutils = callPackage ../development/python-modules/ipython_genutils { }; ipython = callPackage ../development/python-modules/ipython { };