Files
nixpkgs/pkgs/development/python-modules/ipytablewidgets/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
ipywidgets,
jupyter-packaging,
jupyterlab,
lz4,
numpy,
pandas,
setuptools,
traitlets,
}:
buildPythonPackage rec {
pname = "ipytablewidgets";
version = "0.3.2";
pyproject = true;
disabled = pythonOlder "3.7";
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 ];
};
}