Skip to content

Commit 69ce526

Browse files
authored
python312Packages.plotly: 5.23.0 -> 5.24.0 and some TLC (#341141)
2 parents a5de0e3 + 898ee40 commit 69ce526

File tree

1 file changed

+95
-12
lines changed

1 file changed

+95
-12
lines changed
Lines changed: 95 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
setuptools,
66
packaging,
77
tenacity,
88
kaleido,
9+
pytestCheckHook,
10+
pandas,
11+
requests,
12+
matplotlib,
13+
xarray,
14+
pillow,
15+
scipy,
16+
psutil,
17+
statsmodels,
18+
ipython,
19+
ipywidgets,
20+
which,
21+
orca,
22+
nbformat,
23+
scikit-image,
924
}:
1025

1126
buildPythonPackage rec {
1227
pname = "plotly";
13-
version = "5.23.0";
28+
version = "5.24.0";
1429
pyproject = true;
1530

16-
src = fetchPypi {
17-
inherit pname version;
18-
hash = "sha256-ieV9ADoRYwOjTeZwCGI5E2fdVkIiq3H4Ux33Ann8AZM=";
31+
src = fetchFromGitHub {
32+
owner = "plotly";
33+
repo = "plotly.py";
34+
rev = "refs/tags/v${version}";
35+
hash = "sha256-frSUybQxst4wG8g8U43Nay9dYCUXuR3dBealwPVyFdI=";
1936
};
2037

38+
sourceRoot = "${src.name}/packages/python/plotly";
39+
2140
postPatch = ''
2241
substituteInPlace pyproject.toml \
2342
--replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," ""
@@ -33,16 +52,80 @@ buildPythonPackage rec {
3352
kaleido
3453
];
3554

36-
pythonImportsCheck = [ "plotly" ];
55+
nativeCheckInputs = [
56+
pytestCheckHook
57+
pandas
58+
requests
59+
matplotlib
60+
xarray
61+
pillow
62+
scipy
63+
psutil
64+
statsmodels
65+
ipython
66+
ipywidgets
67+
which
68+
orca
69+
nbformat
70+
scikit-image
71+
];
72+
73+
disabledTests = [
74+
# FAILED plotly/matplotlylib/mplexporter/tests/test_basic.py::test_legend_dots - AssertionError: assert '3' == '2'
75+
"test_legend_dots"
76+
# FAILED plotly/matplotlylib/mplexporter/tests/test_utils.py::test_linestyle - AssertionError:
77+
"test_linestyle"
78+
# FAILED plotly/tests/test_io/test_to_from_plotly_json.py::test_sanitize_json[auto] - KeyError: 'template'
79+
# FAILED plotly/tests/test_io/test_to_from_plotly_json.py::test_sanitize_json[json] - KeyError: 'template'
80+
"test_sanitize_json"
81+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_validate_orca - ValueError:
82+
"test_validate_orca"
83+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_orca_executable_path - ValueError:
84+
"test_orca_executable_path"
85+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_orca_version_number - ValueError:
86+
"test_orca_version_number"
87+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_ensure_orca_ping_and_proc - ValueError:
88+
"test_ensure_orca_ping_and_proc"
89+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_server_timeout_shutdown - ValueError:
90+
"test_server_timeout_shutdown"
91+
# FAILED plotly/tests/test_orca/test_orca_server.py::test_external_server_url - ValueError:
92+
"test_external_server_url"
93+
# FAILED plotly/tests/test_orca/test_to_image.py::test_simple_to_image[eps] - ValueError:
94+
"test_simple_to_image"
95+
# FAILED plotly/tests/test_orca/test_to_image.py::test_to_image_default[eps] - ValueError:
96+
"test_to_image_default"
97+
# FAILED plotly/tests/test_orca/test_to_image.py::test_write_image_string[eps] - ValueError:
98+
"test_write_image_string"
99+
# FAILED plotly/tests/test_orca/test_to_image.py::test_write_image_writeable[eps] - ValueError:
100+
"test_write_image_writeable"
101+
# FAILED plotly/tests/test_orca/test_to_image.py::test_write_image_string_format_inference[eps] - ValueError:
102+
"test_write_image_string_format_inference"
103+
# FAILED plotly/tests/test_orca/test_to_image.py::test_write_image_string_bad_extension_failure - assert 'must be specified as one of the followi...
104+
"test_write_image_string_bad_extension_failure"
105+
# FAILED plotly/tests/test_orca/test_to_image.py::test_write_image_string_bad_extension_override - ValueError:
106+
"test_write_image_string_bad_extension_override"
107+
# FAILED plotly/tests/test_orca/test_to_image.py::test_topojson_fig_to_image[eps] - ValueError:
108+
"test_topojson_fig_to_image"
109+
# FAILED plotly/tests/test_orca/test_to_image.py::test_latex_fig_to_image[eps] - ValueError:
110+
"test_latex_fig_to_image"
111+
# FAILED plotly/tests/test_orca/test_to_image.py::test_problematic_environment_variables[eps] - ValueError:
112+
"test_problematic_environment_variables"
113+
# FAILED plotly/tests/test_orca/test_to_image.py::test_invalid_figure_json - assert 'Invalid' in "\nThe orca executable is required in order to e...
114+
"test_invalid_figure_json"
115+
# FAILED test_init/test_dependencies_not_imported.py::test_dependencies_not_imported - AssertionError: assert 'plotly' not in {'IPython': <module>
116+
"test_dependencies_not_imported"
117+
# FAILED test_init/test_lazy_imports.py::test_lazy_imports - AssertionError: assert 'plotly' not in {'IPython': <module 'IPython' from '...
118+
"test_lazy_imports"
119+
];
37120

38-
# No tests in archive
39-
doCheck = false;
121+
pythonImportsCheck = [ "plotly" ];
40122

41-
meta = with lib; {
123+
meta = {
42124
description = "Python plotting library for collaborative, interactive, publication-quality graphs";
43-
downloadPage = "https://github.com/plotly/plotly.py";
44125
homepage = "https://plot.ly/python/";
45-
license = with licenses; [ mit ];
46-
maintainers = with maintainers; [ pandapip1 ];
126+
downloadPage = "https://github.com/plotly/plotly.py";
127+
changelog = "https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md";
128+
license = lib.licenses.mit;
129+
maintainers = with lib.maintainers; [ pandapip1 ];
47130
};
48131
}

0 commit comments

Comments
 (0)