depot/third_party/nixpkgs/pkgs/development/python-modules/pydeck/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

74 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ipykernel
, ipywidgets
, jinja2
, jupyter
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, setuptools
, traitlets
, wheel
}:
buildPythonPackage rec {
pname = "pydeck";
version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/Yt19hyg1HEtMrTgc0QPHLdPLgwWoLV+V6AOZcVjzFQ=";
};
# upstream has an invalid pyproject.toml
# https://github.com/visgl/deck.gl/issues/8469
postPatch = ''
rm pyproject.toml
'';
nativeBuildInputs = [
jinja2
jupyter
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;
};
}