summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/whisper/default.nix
blob: b42a8ccb80551892b503f68023f88ca998fbcb26 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  six,
  mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "whisper";
  version = "1.1.10";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "graphite-project";
    repo = "whisper";
    tag = version;
    hash = "sha256-CnCbRmI2jc67mTtfupoE1uHtobrAiWoUXbfX8YeEV6A=";
  };

  build-system = [ setuptools ];

  dependencies = [ six ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  disabledTests = [
    # whisper-resize.py: not found
    "test_resize_with_aggregate"
  ];

  pythonImportsCheck = [ "whisper" ];

  meta = {
    homepage = "https://github.com/graphite-project/whisper";
    description = "Fixed size round-robin style database";
    changelog = "https://graphite.readthedocs.io/en/latest/releases/${
      builtins.replaceStrings [ "." ] [ "_" ] version
    }.html";
    maintainers = with lib.maintainers; [
      offline
      basvandijk
    ];
    license = lib.licenses.asl20;
  };
}