depot/third_party/nixpkgs/pkgs/development/python-modules/pydeck/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

65 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ipykernel
, ipywidgets
, jinja2
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, setuptools
, traitlets
, wheel
}:
buildPythonPackage rec {
pname = "pydeck";
version = "0.8.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
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
] ++ passthru.optional-dependencies.jupyter;
# tries to start a jupyter server
disabledTests = [ "test_nbconvert" ];
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;
};
}