27 buildPythonPackage rec {
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-ONuX5/GlirPF8+7bZtib1Xsv5llcXcSelFfGyeTc5L8=";
39 sourceRoot = "${src.name}/packages/python/plotly";
42 substituteInPlace pyproject.toml \
43 --replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," ""
48 build-system = [ setuptools ];
56 # packages/python/plotly/optional-requirements.txt
57 optional-dependencies = {
82 # failed pinning test, sensitive to dep versions
85 # test bug, i assume sensitive to dep versions
87 # requires vaex and polars, vaex is not packaged
88 "test_build_df_from_vaex_and_polars"
89 "test_build_df_with_hover_data_from_vaex_and_polars"
90 # lazy loading error, could it be the sandbox PYTHONPATH?
91 # AssertionError: assert "plotly" not in sys.modules
92 "test_dependencies_not_imported"
97 # unable to locate orca binary, adding the package does not fix it
98 "plotly/tests/test_orca/"
100 ++ lib.optionals stdenv.hostPlatform.isDarwin [
101 # requires local networking
102 "plotly/tests/test_io/test_renderers.py"
103 # fails to launch kaleido subprocess
104 "plotly/tests/test_optional/test_kaleido"
107 pythonImportsCheck = [ "plotly" ];
110 description = "Python plotting library for collaborative, interactive, publication-quality graphs";
111 homepage = "https://plot.ly/python/";
112 downloadPage = "https://github.com/plotly/plotly.py";
113 changelog = "https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md";
114 license = lib.licenses.mit;
115 maintainers = with lib.maintainers; [ pandapip1 ];