1{ buildPythonPackage, fetchFromGitHub, lib, flask, flask-caching, cairocffi, pyparsing, pytz, pyyaml 2, raven, six, structlog, tzlocal, nose, mock, cairo, isPyPy 3}: 4 5buildPythonPackage rec { 6 pname = "graphite-api"; 7 version = "1.1.3"; 8 9 disabled = isPyPy; 10 11 src = fetchFromGitHub { 12 owner = "brutasse"; 13 repo = "graphite-api"; 14 rev = version; 15 sha256 = "0sz3kav2024ms2z4q03pigcf080gsr5v774z9bp3zw29k2p47ass"; 16 }; 17 18 # https://github.com/brutasse/graphite-api/pull/239 rebased onto 1.1.3 19 patches = [ ./flask-caching-rebased.patch ]; 20 21 checkPhase = "nosetests"; 22 23 propagatedBuildInputs = [ 24 flask 25 flask-caching 26 cairocffi 27 pyparsing 28 pytz 29 pyyaml 30 raven 31 six 32 structlog 33 tzlocal 34 ]; 35 36 checkInputs = [ nose mock ]; 37 38 LD_LIBRARY_PATH = "${cairo.out}/lib"; 39 40 meta = with lib; { 41 description = "Graphite-web, without the interface. Just the rendering HTTP API"; 42 homepage = https://github.com/brutasse/graphite-api; 43 license = licenses.asl20; 44 }; 45}