python3Packages.{plotly,chart-studio}: fixes (#421308)

authored by Gaétan Lepage and committed by GitHub e5b39358 44c57e88

+42 -36
+8 -12
pkgs/development/python-modules/chart-studio/default.nix
··· 10 10 pytestCheckHook, 11 11 }: 12 12 13 - buildPythonPackage rec { 13 + buildPythonPackage { 14 14 pname = "chart-studio"; 15 - version = "1.1.0-unstable-2024-07-23"; 15 + version = "1.1.0-unstable-2025-01-30"; 16 16 pyproject = true; 17 17 18 - # chart-studio was split from plotly 19 18 src = fetchFromGitHub { 20 19 owner = "plotly"; 21 - repo = "plotly.py"; 22 - # We use plotly's upstream version as it's the same repo, but chart studio has its own version number. 23 - rev = "v5.23.0"; 24 - hash = "sha256-K1hEs00AGBCe2fgytyPNWqE5M0jU5ESTzynP55kc05Y="; 20 + repo = "chart-studio"; 21 + rev = "44c7c43be0fe7e031ec281c86ee7dae0efa0619e"; 22 + hash = "sha256-RekcZzUcunIqXOSriW+RvpLdvATQWTeRAiR8LFodfQg="; 25 23 }; 26 - 27 - sourceRoot = "${src.name}/packages/python/chart-studio"; 28 24 29 25 build-system = [ setuptools ]; 30 26 ··· 36 32 37 33 nativeCheckInputs = [ 38 34 mock 35 + plotly 39 36 pytestCheckHook 40 37 ]; 41 38 ··· 46 43 # most tests talk to a network service, so only run ones that don't do that. 47 44 pytestFlagsArray = [ 48 45 "chart_studio/tests/test_core" 49 - "chart_studio/tests/test_plot_ly/test_api" 50 46 ]; 51 47 52 48 meta = { 53 49 description = "Utilities for interfacing with Plotly's Chart Studio service"; 54 - homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio"; 50 + homepage = "https://github.com/plotly/chart-studio"; 55 51 license = with lib.licenses; [ mit ]; 56 - maintainers = [ ]; 52 + maintainers = with lib.maintainers; [ sarahec ]; 57 53 }; 58 54 }
+34 -24
pkgs/development/python-modules/plotly/default.nix
··· 38 38 39 39 buildPythonPackage rec { 40 40 pname = "plotly"; 41 - version = "6.1.2"; 41 + version = "6.2.0"; 42 42 pyproject = true; 43 43 44 44 src = fetchFromGitHub { 45 45 owner = "plotly"; 46 46 repo = "plotly.py"; 47 47 tag = "v${version}"; 48 - hash = "sha256-+vIq//pDLaaTmRGW+oytho3TfMmLCtuIoHeFenLVcek="; 48 + hash = "sha256-Vfj5jG0AkBjivExOx7oMoocTopWl0yMc1INpEbtlgTc="; 49 49 }; 50 50 51 51 postPatch = '' ··· 105 105 106 106 __darwinAllowLocalNetworking = true; 107 107 108 - disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ 109 - # fails to launch kaleido subprocess 110 - "tests/test_optional/test_kaleido" 111 - # numpy2 related error, RecursionError 112 - # See: https://github.com/plotly/plotly.py/issues/4852 113 - "tests/test_plotly_utils/validators/test_angle_validator.py" 114 - "tests/test_plotly_utils/validators/test_any_validator.py" 115 - "tests/test_plotly_utils/validators/test_color_validator.py" 116 - "tests/test_plotly_utils/validators/test_colorlist_validator.py" 117 - "tests/test_plotly_utils/validators/test_colorscale_validator.py" 118 - "tests/test_plotly_utils/validators/test_dataarray_validator.py" 119 - "tests/test_plotly_utils/validators/test_enumerated_validator.py" 120 - "tests/test_plotly_utils/validators/test_fig_deepcopy.py" 121 - "tests/test_plotly_utils/validators/test_flaglist_validator.py" 122 - "tests/test_plotly_utils/validators/test_infoarray_validator.py" 123 - "tests/test_plotly_utils/validators/test_integer_validator.py" 124 - "tests/test_plotly_utils/validators/test_number_validator.py" 125 - "tests/test_plotly_utils/validators/test_pandas_series_input.py" 126 - "tests/test_plotly_utils/validators/test_string_validator.py" 127 - "tests/test_plotly_utils/validators/test_xarray_input.py" 128 - ]; 108 + disabledTestPaths = 109 + [ 110 + # Broken imports 111 + "plotly/matplotlylib/mplexporter/tests" 112 + # Fails to catch error when serializing document 113 + "tests/test_optional/test_kaleido/test_kaleido.py::test_defaults" 114 + ] 115 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 116 + # fails to launch kaleido subprocess 117 + "tests/test_optional/test_kaleido" 118 + # numpy2 related error, RecursionError 119 + # See: https://github.com/plotly/plotly.py/issues/4852 120 + "tests/test_plotly_utils/validators/test_angle_validator.py" 121 + "tests/test_plotly_utils/validators/test_any_validator.py" 122 + "tests/test_plotly_utils/validators/test_color_validator.py" 123 + "tests/test_plotly_utils/validators/test_colorlist_validator.py" 124 + "tests/test_plotly_utils/validators/test_colorscale_validator.py" 125 + "tests/test_plotly_utils/validators/test_dataarray_validator.py" 126 + "tests/test_plotly_utils/validators/test_enumerated_validator.py" 127 + "tests/test_plotly_utils/validators/test_fig_deepcopy.py" 128 + "tests/test_plotly_utils/validators/test_flaglist_validator.py" 129 + "tests/test_plotly_utils/validators/test_infoarray_validator.py" 130 + "tests/test_plotly_utils/validators/test_integer_validator.py" 131 + "tests/test_plotly_utils/validators/test_number_validator.py" 132 + "tests/test_plotly_utils/validators/test_pandas_series_input.py" 133 + "tests/test_plotly_utils/validators/test_string_validator.py" 134 + "tests/test_plotly_utils/validators/test_xarray_input.py" 135 + ]; 129 136 130 137 pythonImportsCheck = [ "plotly" ]; 131 138 ··· 135 142 downloadPage = "https://github.com/plotly/plotly.py"; 136 143 changelog = "https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md"; 137 144 license = lib.licenses.mit; 138 - maintainers = with lib.maintainers; [ pandapip1 ]; 145 + maintainers = with lib.maintainers; [ 146 + pandapip1 147 + sarahec 148 + ]; 139 149 }; 140 150 }