summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/stumpy/default.nix
blob: 08dd9f0a0785ae471bc53d410ec8bdc224a95505 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,
  setuptools-scm,

  # dependencies
  numba,
  numpy,
  scipy,

  # tests
  dask,
  distributed,
  pandas,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "stumpy";
  version = "1.13.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "TDAmeritrade";
    repo = "stumpy";
    tag = "v${version}";
    hash = "sha256-S+Rb6pHphXfbqz4VMnN1p7ZrlWB/g7XCdy/T5/Q8VD8=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    numba
    numpy
    scipy
  ];

  nativeCheckInputs = [
    dask
    distributed
    pandas
    pytestCheckHook
  ];

  pythonImportsCheck = [ "stumpy" ];

  enabledTestPaths = [
    # whole testsuite is very CPU intensive, only run core tests
    # TODO: move entire test suite to passthru.tests
    "tests/test_core.py"
  ];

  meta = {
    description = "Library that can be used for a variety of time series data mining tasks";
    changelog = "https://github.com/TDAmeritrade/stumpy/blob/v${version}/CHANGELOG.md";
    homepage = "https://github.com/TDAmeritrade/stumpy";
    license = lib.licenses.bsd3;
    maintainers = [ ];
    badPlatforms = [
      # Multiple tests fail with:
      # Segmentation fault (core dumped)
      "aarch64-linux"
    ];
  };
}