2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
|
|
|
packaging,
|
2024-06-05 15:53:02 +00:00
|
|
|
tenacity,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plotly";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "5.23.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-ieV9ADoRYwOjTeZwCGI5E2fdVkIiq3H4Ux33Ann8AZM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
env.SKIP_NPM = true;
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
packaging
|
2021-09-18 10:52:07 +00:00
|
|
|
tenacity
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonImportsCheck = [ "plotly" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python plotting library for collaborative, interactive, publication-quality graphs";
|
2024-01-13 08:15:51 +00:00
|
|
|
downloadPage = "https://github.com/plotly/plotly.py";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://plot.ly/python/";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ mit ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|