Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python311Packages.tsfresh: fix build on darwin

+24 -14
+24 -14
pkgs/development/python-modules/tsfresh/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 + stdenv, 5 6 pythonOlder, 6 7 requests, 7 8 numpy, ··· 45 46 ./remove-pytest-coverage-flags.patch 46 47 ]; 47 48 48 - propagatedBuildInputs = [ 49 + dependencies = [ 49 50 requests 50 51 numpy 51 52 pandas ··· 71 72 pandas-datareader 72 73 ]; 73 74 74 - disabledTests = [ 75 - # touches network 76 - "test_relevant_extraction" 77 - "test_characteristics_downloaded_robot_execution_failures" 78 - "test_index" 79 - "test_binary_target_is_default" 80 - "test_characteristics_downloaded_robot_execution_failures" 81 - "test_extraction_runs_through" 82 - "test_multilabel_target_on_request" 83 - ]; 75 + disabledTests = 76 + [ 77 + # touches network 78 + "test_relevant_extraction" 79 + "test_characteristics_downloaded_robot_execution_failures" 80 + "test_index" 81 + "test_binary_target_is_default" 82 + "test_characteristics_downloaded_robot_execution_failures" 83 + "test_extraction_runs_through" 84 + "test_multilabel_target_on_request" 85 + ] 86 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 87 + # RuntimeError: Cluster failed to start: [Errno 1] Operation not permitted 88 + # may require extra privileges on darwin 89 + "test_local_dask_cluster_extraction_one_worker" 90 + "test_local_dask_cluster_extraction_two_worker" 91 + "test_dask_cluster_extraction_one_worker" 92 + "test_dask_cluster_extraction_two_workers" 93 + ]; 84 94 85 95 pythonImportsCheck = [ "tsfresh" ]; 86 96 87 - meta = with lib; { 97 + meta = { 88 98 description = "Automatic extraction of relevant features from time series"; 89 99 mainProgram = "run_tsfresh"; 90 100 homepage = "https://github.com/blue-yonder/tsfresh"; 91 101 changelog = "https://github.com/blue-yonder/tsfresh/blob/${src.rev}/CHANGES.rst"; 92 - license = licenses.mit; 93 - maintainers = with maintainers; [ mbalatsko ]; 102 + license = lib.licenses.mit; 103 + maintainers = with lib.maintainers; [ mbalatsko ]; 94 104 }; 95 105 }