Unverified Commit b9c73c53 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python311Packages.tsfresh: fix build on darwin (#354667)

parents ae7f0eeb 39769f9f
Loading
Loading
Loading
Loading
+24 −14
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  stdenv,
  pythonOlder,
  requests,
  numpy,
@@ -45,7 +46,7 @@ buildPythonPackage rec {
    ./remove-pytest-coverage-flags.patch
  ];

  propagatedBuildInputs = [
  dependencies = [
    requests
    numpy
    pandas
@@ -71,7 +72,8 @@ buildPythonPackage rec {
    pandas-datareader
  ];

  disabledTests = [
  disabledTests =
    [
      # touches network
      "test_relevant_extraction"
      "test_characteristics_downloaded_robot_execution_failures"
@@ -80,16 +82,24 @@ buildPythonPackage rec {
      "test_characteristics_downloaded_robot_execution_failures"
      "test_extraction_runs_through"
      "test_multilabel_target_on_request"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # RuntimeError: Cluster failed to start: [Errno 1] Operation not permitted
      # may require extra privileges on darwin
      "test_local_dask_cluster_extraction_one_worker"
      "test_local_dask_cluster_extraction_two_worker"
      "test_dask_cluster_extraction_one_worker"
      "test_dask_cluster_extraction_two_workers"
    ];

  pythonImportsCheck = [ "tsfresh" ];

  meta = with lib; {
  meta = {
    description = "Automatic extraction of relevant features from time series";
    mainProgram = "run_tsfresh";
    homepage = "https://github.com/blue-yonder/tsfresh";
    changelog = "https://github.com/blue-yonder/tsfresh/blob/${src.rev}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mbalatsko ];
  };
}