23 buildPythonPackage rec {
28 disabled = pythonOlder "3.8";
30 src = fetchFromGitHub {
33 rev = "refs/tags/v${version}";
34 hash = "sha256-7C51ACaBuNtOSXqLpuCI5bnLyE9U64vNXlD4/msPq2k=";
37 build-system = [ hatchling ];
47 ] ++ lib.optional (pythonOlder "3.14") typing-extensions;
58 pythonImportsCheck = [ "altair" ];
61 # ValueError: Saving charts in 'svg' format requires the vl-convert-python or altair_saver package: see http://github.com/altair-viz/altair_saver/
62 "test_renderer_with_none_embed_options"
66 # Disabled because it requires internet connectivity
67 "tests/test_examples.py"
68 # TODO: Disabled because of missing altair_viewer package
69 "tests/vegalite/v5/test_api.py"
70 # avoid updating files and dependency on black
71 "tests/test_toplevel.py"
72 # require vl-convert package
73 "tests/utils/test_compiler.py"
77 description = "Declarative statistical visualization library for Python";
78 homepage = "https://altair-viz.github.io";
79 downloadPage = "https://github.com/altair-viz/altair";
80 changelog = "https://altair-viz.github.io/releases/changes.html";
81 license = licenses.bsd3;
82 maintainers = with maintainers; [