From 39769f9fc86fa5901be6d60bb58223ef855e59f1 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sat, 9 Nov 2024 10:49:20 +0800 Subject: [PATCH] python311Packages.tsfresh: fix build on darwin --- .../python-modules/tsfresh/default.nix | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/tsfresh/default.nix b/pkgs/development/python-modules/tsfresh/default.nix index 96403101d851..3b8b7d75c447 100644 --- a/pkgs/development/python-modules/tsfresh/default.nix +++ b/pkgs/development/python-modules/tsfresh/default.nix @@ -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,25 +72,34 @@ buildPythonPackage rec { pandas-datareader ]; - disabledTests = [ - # touches network - "test_relevant_extraction" - "test_characteristics_downloaded_robot_execution_failures" - "test_index" - "test_binary_target_is_default" - "test_characteristics_downloaded_robot_execution_failures" - "test_extraction_runs_through" - "test_multilabel_target_on_request" - ]; + disabledTests = + [ + # touches network + "test_relevant_extraction" + "test_characteristics_downloaded_robot_execution_failures" + "test_index" + "test_binary_target_is_default" + "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 ]; }; }