python310Packages.pydeck: move some inputs to optional-dependencies

This commit is contained in:
natsukium 2023-08-06 20:24:39 +09:00 committed by Frederik Rietdijk
parent 0d40a3066c
commit 32c8912889

View file

@ -3,12 +3,14 @@
, fetchPypi
, ipykernel
, ipywidgets
, pythonOlder
, pytestCheckHook
, pandas
, jinja2
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, setuptools
, traitlets
, wheel
}:
buildPythonPackage rec {
@ -23,21 +25,37 @@ buildPythonPackage rec {
hash = "sha256-B+3egz98/O9nSRJDURlap9zSRmPUkJ/XiY29C2+8Aew=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
jinja2
numpy
];
passthru.optional-dependencies = {
carto = [
# pydeck-carto
];
jupyter = [
ipykernel
ipywidgets
traitlets
];
};
pythonImportsCheck = [ "pydeck" ];
nativeCheckInputs = [ pytestCheckHook pandas ];
nativeCheckInputs = [
pytestCheckHook
pandas
] ++ passthru.optional-dependencies.jupyter;
# tries to start a jupyter server
disabledTests = [ "test_nbconvert" ];
propagatedBuildInputs = [
ipykernel
ipywidgets
jinja2
numpy
traitlets
];
meta = with lib; {
homepage = "https://github.com/visgl/deck.gl/tree/master/bindings/pydeck";
description = "Large-scale interactive data visualization in Python";