2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
ipywidgets,
|
|
|
|
jupyter-packaging,
|
|
|
|
jupyterlab,
|
|
|
|
lz4,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
setuptools,
|
|
|
|
traitlets,
|
|
|
|
traittypes,
|
|
|
|
wheel,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# 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'
|
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
jupyterlab
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipywidgets
|
|
|
|
lz4
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
traitlets
|
|
|
|
traittypes
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|