2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ipykernel
|
|
|
|
, ipywidgets
|
|
|
|
, jinja2
|
2023-10-09 19:29:22 +00:00
|
|
|
, jupyter
|
2022-05-18 14:49:53 +00:00
|
|
|
, numpy
|
2023-08-22 20:05:09 +00:00
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2022-05-18 14:49:53 +00:00
|
|
|
, traitlets
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydeck";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.9.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-/Yt19hyg1HEtMrTgc0QPHLdPLgwWoLV+V6AOZcVjzFQ=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# upstream has an invalid pyproject.toml
|
|
|
|
# https://github.com/visgl/deck.gl/issues/8469
|
|
|
|
postPatch = ''
|
|
|
|
rm pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
jinja2
|
|
|
|
jupyter
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
jinja2
|
|
|
|
numpy
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
carto = [
|
|
|
|
# pydeck-carto
|
|
|
|
];
|
|
|
|
jupyter = [
|
|
|
|
ipykernel
|
|
|
|
ipywidgets
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pydeck" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pandas
|
|
|
|
] ++ passthru.optional-dependencies.jupyter;
|
|
|
|
|
|
|
|
# tries to start a jupyter server
|
|
|
|
disabledTests = [ "test_nbconvert" ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/visgl/deck.gl/tree/master/bindings/pydeck";
|
|
|
|
description = "Large-scale interactive data visualization in Python";
|
|
|
|
maintainers = with maintainers; [ creator54 ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|