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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
stdenv,
requests,
numpy,
pandas,
scipy,
statsmodels,
patsy,
scikit-learn,
tqdm,
dask,
distributed,
stumpy,
cloudpickle,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
mock,
matplotlib,
seaborn,
ipython,
notebook,
pandas-datareader,
setuptools,
pywavelets,
}:
buildPythonPackage rec {
pname = "tsfresh";
version = "0.21.1";
pyproject = true;
src = fetchFromGitHub {
owner = "blue-yonder";
repo = "tsfresh";
tag = "v${version}";
hash = "sha256-KwUI33t5KFcTUWdSDg81OPbNn5SYv4Gw/0dPjCB502w=";
};
patches = [
# The pyscaffold is not a build dependency but just a python project bootstrapping tool, so we do not need it
./remove-pyscaffold.patch
];
dependencies = [
setuptools
requests
numpy
pandas
scipy
statsmodels
patsy
scikit-learn
tqdm
dask
distributed
stumpy
cloudpickle
pywavelets
]
++ dask.optional-dependencies.dataframe;
# python-datareader is disabled on Python 3.12+ and is require only for checks.
doCheck = !pandas-datareader.disabled;
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-xdist
mock
matplotlib
seaborn
ipython
notebook
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"
]
++ 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 = {
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.tag}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|