2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
scipy,
|
|
|
|
statsmodels,
|
|
|
|
patsy,
|
|
|
|
scikit-learn,
|
|
|
|
tqdm,
|
|
|
|
dask,
|
|
|
|
distributed,
|
|
|
|
stumpy,
|
|
|
|
cloudpickle,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-xdist,
|
|
|
|
mock,
|
|
|
|
matplotlib,
|
|
|
|
seaborn,
|
|
|
|
ipython,
|
|
|
|
notebook,
|
|
|
|
pandas-datareader,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tsfresh";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.20.2";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blue-yonder";
|
|
|
|
repo = "tsfresh";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-UTra+RAQnrv61NQ86xGYrUVYiycUAWhN/45F6/0ZvPI=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# The pyscaffold is not a build dependency but just a python project bootstrapping tool, so we do not need it
|
|
|
|
./remove-pyscaffold.patch
|
|
|
|
./remove-pytest-coverage-flags.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
patsy
|
|
|
|
scikit-learn
|
|
|
|
tqdm
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
stumpy
|
|
|
|
cloudpickle
|
|
|
|
] ++ dask.optional-dependencies.dataframe;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "tsfresh" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Automatic extraction of relevant features from time series";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "run_tsfresh";
|
2023-10-09 19:29:22 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|