push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
numpy,
scipy,
statsmodels,
}:
buildPythonPackage {
pname = "changefinder";
version = "unstable-2024-03-24";
pyproject = true;
src = fetchFromGitHub {
owner = "shunsukeaihara";
repo = "changefinder";
rev = "58c8c32f127b9e46f9823f36221f194bdb6f3f8b";
hash = "sha256-1If0gIsMU8673fKSSHVMvDgR1UnYgM/4HiyvZJ9T6VM=";
};
patches = [ ./fix_test_invocation.patch ];
build-system = [ setuptools ];
pythonRemoveDeps = [ "nose" ];
dependencies = [
numpy
scipy
statsmodels
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test/test.py" ];
pythonImportsCheck = [ "changefinder" ];
meta = with lib; {
description = "Online Change-Point Detection library based on ChangeFinder algorithm";
homepage = "https://github.com/shunsukeaihara/changefinder";
license = licenses.mit;
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/test/test.py b/test/test.py
index 85a9f4e..a5f44fd 100644
--- a/test/test.py
+++ b/test/test.py
@@ -4,7 +4,7 @@ import numpy as np
class TestChangeFinder():
- def setup(self):
+ def setup_method(self):
self._term = 30
self._smooth = 7
self._order = 1