nixpkgs/pkgs/development/python-modules/pydeck/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

73 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
ipykernel,
ipywidgets,
jinja2,
jupyter,
numpy,
pandas,
pytestCheckHook,
setuptools,
traitlets,
wheel,
}:
buildPythonPackage rec {
pname = "pydeck";
version = "0.9.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-90R1rmN5UdY/LuWDJnV/jU+c2fKkV89ClQcVAD4stgU=";
};
# 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
];
optional-dependencies = {
carto = [
# pydeck-carto
];
jupyter = [
ipykernel
ipywidgets
traitlets
];
};
pythonImportsCheck = [ "pydeck" ];
nativeCheckInputs = [
pytestCheckHook
pandas
]
++ optional-dependencies.jupyter;
# tries to start a jupyter server
disabledTests = [ "test_nbconvert" ];
meta = {
homepage = "https://github.com/visgl/deck.gl/tree/master/bindings/pydeck";
description = "Large-scale interactive data visualization in Python";
maintainers = with lib.maintainers; [ creator54 ];
license = lib.licenses.asl20;
};
}