Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 six, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "whisper"; 12 version = "1.1.10"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "graphite-project"; 17 repo = pname; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-CnCbRmI2jc67mTtfupoE1uHtobrAiWoUXbfX8YeEV6A="; 20 }; 21 22 propagatedBuildInputs = [ six ]; 23 24 nativeCheckInputs = [ 25 mock 26 pytestCheckHook 27 ]; 28 29 disabledTests = [ 30 # whisper-resize.py: not found 31 "test_resize_with_aggregate" 32 ]; 33 34 pythonImportsCheck = [ "whisper" ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/graphite-project/whisper"; 38 description = "Fixed size round-robin style database"; 39 maintainers = with maintainers; [ 40 offline 41 basvandijk 42 ]; 43 license = licenses.asl20; 44 }; 45}