nixpkgs/pkgs/development/python-modules/ipytablewidgets/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

59 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
ipywidgets,
jupyter-packaging,
jupyterlab,
lz4,
numpy,
pandas,
setuptools,
traitlets,
}:
buildPythonPackage rec {
pname = "ipytablewidgets";
version = "0.3.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-CGkb//mLUmkyv+hmVJX5+04JGCfw+TtfBxMTXW0bhsw=";
};
# Opened https://github.com/progressivis/ipytablewidgets/issues/3 to ask if
# jupyterlab can be updated upstream. (From commits, it looks like it was
# set to this version on purpose.) In the meantime, the build still works.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'jupyterlab>=3.0.0,<3.7' 'jupyterlab>=3.0.0'
'';
build-system = [
jupyter-packaging
jupyterlab
setuptools
];
dependencies = [
ipywidgets
lz4
numpy
pandas
traitlets
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ipytablewidgets" ];
meta = {
description = "Traitlets and widgets to efficiently data tables (e.g. Pandas DataFrame) using the jupyter notebook";
homepage = "https://github.com/progressivis/ipytablewidgets";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ natsukium ];
};
}