2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
plotly,
|
|
|
|
requests,
|
|
|
|
retrying,
|
|
|
|
setuptools,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chart-studio";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.0-unstable-2024-07-23";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# chart-studio was split from plotly
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plotly";
|
|
|
|
repo = "plotly.py";
|
2024-09-19 14:19:46 +00:00
|
|
|
# We use plotly's upstream version as it's the same repo, but chart studio has its own version number.
|
|
|
|
rev = "v5.23.0";
|
|
|
|
hash = "sha256-K1hEs00AGBCe2fgytyPNWqE5M0jU5ESTzynP55kc05Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/packages/python/chart-studio";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2020-04-24 23:36:52 +00:00
|
|
|
plotly
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# most tests talk to a network service, so only run ones that don't do that.
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"chart_studio/tests/test_core"
|
|
|
|
"chart_studio/tests/test_plot_ly/test_api"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utilities for interfacing with Plotly's Chart Studio service";
|
|
|
|
homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = with lib.licenses; [ mit ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|