From 7835da5393b3c0adecb66ce20f8bbbf68b975ab1 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Fri, 13 Jun 2025 15:07:07 +0200 Subject: [PATCH] python3Packages.tsfresh: 0.20.3 -> 0.21.0 https://github.com/blue-yonder/tsfresh/blob/refs/tags/v0.21.0/CHANGES.rst * disable tests on Python verions where pandas-daatareader doesn't work * add dependency on pywavelets that fixes incompatibility with the current version of scipy --- .../python-modules/tsfresh/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/tsfresh/default.nix b/pkgs/development/python-modules/tsfresh/default.nix index 50d2d0d9a92cb..7f682c302c488 100644 --- a/pkgs/development/python-modules/tsfresh/default.nix +++ b/pkgs/development/python-modules/tsfresh/default.nix @@ -25,11 +25,13 @@ ipython, notebook, pandas-datareader, + setuptools, + pywavelets, }: buildPythonPackage rec { pname = "tsfresh"; - version = "0.20.3"; + version = "0.21.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -37,8 +39,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "blue-yonder"; repo = "tsfresh"; - rev = "refs/tags/v${version}"; - hash = "sha256-Lw70PDiRVPiTzpnbfKSo7jjfBitCePSy15QL0z7+bMg="; + tag = "v${version}"; + hash = "sha256-XwNCI1J/Z6w7nq59s9rSN4eVGgrMDQjPpGFy9SxrTn0="; }; patches = [ @@ -47,6 +49,7 @@ buildPythonPackage rec { ]; dependencies = [ + setuptools requests numpy pandas @@ -59,8 +62,12 @@ buildPythonPackage rec { 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 @@ -99,7 +106,7 @@ buildPythonPackage rec { 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"; + changelog = "https://github.com/blue-yonder/tsfresh/blob/${src.tag}/CHANGES.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mbalatsko ]; };