2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, ipykernel
|
|
|
|
, ipywidgets
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, pandas
|
|
|
|
, jinja2
|
|
|
|
, numpy
|
|
|
|
, traitlets
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydeck";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.7.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
# fixes build with latest setuptools
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/visgl/deck.gl/commit/9e68f73b28aa3bf0f2a887a4d8ccd2dc35677039.patch";
|
|
|
|
sha256 = "sha256-YVVoVbVdY5nV+17OwYIs9AwKGyzgKZHi655f4BLcdMU=";
|
|
|
|
stripLen = 2;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "907601c99f7510e16d27d7cb62bfa145216d166a2b5c9c50cfe2b65b032ebd2e";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pydeck" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pandas ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# tries to start a jupyter server
|
|
|
|
disabledTests = [ "test_nbconvert" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipykernel
|
|
|
|
ipywidgets
|
2022-05-18 14:49:53 +00:00
|
|
|
jinja2
|
|
|
|
numpy
|
|
|
|
traitlets
|
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;
|
|
|
|
};
|
|
|
|
}
|