1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 packaging,
7 tenacity,
8}:
9
10buildPythonPackage rec {
11 pname = "plotly";
12 version = "5.23.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-ieV9ADoRYwOjTeZwCGI5E2fdVkIiq3H4Ux33Ann8AZM=";
18 };
19
20 postPatch = ''
21 substituteInPlace pyproject.toml \
22 --replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," ""
23 '';
24
25 env.SKIP_NPM = true;
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 packaging
31 tenacity
32 ];
33
34 pythonImportsCheck = [ "plotly" ];
35
36 # No tests in archive
37 doCheck = false;
38
39 meta = with lib; {
40 description = "Python plotting library for collaborative, interactive, publication-quality graphs";
41 downloadPage = "https://github.com/plotly/plotly.py";
42 homepage = "https://plot.ly/python/";
43 license = with licenses; [ mit ];
44 maintainers = [ ];
45 };
46}