about summary refs log tree commit diff
path: root/pkgs/development/python-modules/changefinder/default.nix
blob: fc34238f00eccc37a7e62b19e2a176a6d895c844 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, nose
, 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=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    nose # not actually required during runtime, but specified as required in `setup.py`
    numpy
    scipy
    statsmodels
  ];

  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 ];
  };
}