Unverified Commit e5b39358 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.{plotly,chart-studio}: fixes (#421308)

parents 44c57e88 40a534d4
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -10,22 +10,18 @@
  pytestCheckHook,
}:

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

  # chart-studio was split from plotly
  src = fetchFromGitHub {
    owner = "plotly";
    repo = "plotly.py";
    # 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=";
    repo = "chart-studio";
    rev = "44c7c43be0fe7e031ec281c86ee7dae0efa0619e";
    hash = "sha256-RekcZzUcunIqXOSriW+RvpLdvATQWTeRAiR8LFodfQg=";
  };

  sourceRoot = "${src.name}/packages/python/chart-studio";

  build-system = [ setuptools ];

  dependencies = [
@@ -36,6 +32,7 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    mock
    plotly
    pytestCheckHook
  ];

@@ -46,13 +43,12 @@ buildPythonPackage rec {
  # 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 = {
    description = "Utilities for interfacing with Plotly's Chart Studio service";
    homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
    homepage = "https://github.com/plotly/chart-studio";
    license = with lib.licenses; [ mit ];
    maintainers = [ ];
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
+34 −24
Original line number Diff line number Diff line
@@ -38,14 +38,14 @@

buildPythonPackage rec {
  pname = "plotly";
  version = "6.1.2";
  version = "6.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "plotly";
    repo = "plotly.py";
    tag = "v${version}";
    hash = "sha256-+vIq//pDLaaTmRGW+oytho3TfMmLCtuIoHeFenLVcek=";
    hash = "sha256-Vfj5jG0AkBjivExOx7oMoocTopWl0yMc1INpEbtlgTc=";
  };

  postPatch = ''
@@ -105,7 +105,14 @@ buildPythonPackage rec {

  __darwinAllowLocalNetworking = true;

  disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
  disabledTestPaths =
    [
      # Broken imports
      "plotly/matplotlylib/mplexporter/tests"
      # Fails to catch error when serializing document
      "tests/test_optional/test_kaleido/test_kaleido.py::test_defaults"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # fails to launch kaleido subprocess
      "tests/test_optional/test_kaleido"
      # numpy2 related error, RecursionError
@@ -135,6 +142,9 @@ buildPythonPackage rec {
    downloadPage = "https://github.com/plotly/plotly.py";
    changelog = "https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pandapip1 ];
    maintainers = with lib.maintainers; [
      pandapip1
      sarahec
    ];
  };
}