summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/chart-studio/default.nix
blob: c822d07d3318369370cde3e451dd9e239171cdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  mock,
  plotly,
  requests,
  retrying,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "chart-studio";
  version = "1.1.0-unstable-2025-01-30";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "plotly";
    repo = "chart-studio";
    rev = "44c7c43be0fe7e031ec281c86ee7dae0efa0619e";
    hash = "sha256-RekcZzUcunIqXOSriW+RvpLdvATQWTeRAiR8LFodfQg=";
  };

  build-system = [ setuptools ];

  dependencies = [
    plotly
    requests
    retrying
  ];

  nativeCheckInputs = [
    mock
    plotly
    pytestCheckHook
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  # most tests talk to a network service, so only run ones that don't do that.
  enabledTestPaths = [
    "chart_studio/tests/test_core"
  ];

  meta = {
    description = "Utilities for interfacing with Plotly's Chart Studio service";
    homepage = "https://github.com/plotly/chart-studio";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ sarahec ];
  };
}