1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 six,
7 mock,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "whisper";
13 version = "1.1.10";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "graphite-project";
18 repo = "whisper";
19 tag = version;
20 hash = "sha256-CnCbRmI2jc67mTtfupoE1uHtobrAiWoUXbfX8YeEV6A=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ six ];
26
27 nativeCheckInputs = [
28 mock
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 # whisper-resize.py: not found
34 "test_resize_with_aggregate"
35 ];
36
37 pythonImportsCheck = [ "whisper" ];
38
39 meta = {
40 homepage = "https://github.com/graphite-project/whisper";
41 description = "Fixed size round-robin style database";
42 changelog = "https://graphite.readthedocs.io/en/latest/releases/${
43 builtins.replaceStrings [ "." ] [ "_" ] version
44 }.html";
45 maintainers = with lib.maintainers; [
46 offline
47 basvandijk
48 ];
49 license = lib.licenses.asl20;
50 };
51}