about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/graphite-api/default.nix
blob: 51300847bbbce55d4b992462356ef559166e539e (plain) (blame)
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
{ buildPythonPackage, fetchFromGitHub, lib, flask, flask-caching, cairocffi, pyparsing, pytz, pyyaml
, raven, six, structlog, tzlocal, nose, mock, cairo, isPyPy
}:

buildPythonPackage rec {
  pname = "graphite-api";
  version = "1.1.3";

  disabled = isPyPy;

  src = fetchFromGitHub {
    owner = "brutasse";
    repo = "graphite-api";
    rev = version;
    sha256 = "0sz3kav2024ms2z4q03pigcf080gsr5v774z9bp3zw29k2p47ass";
  };

  # https://github.com/brutasse/graphite-api/pull/239 rebased onto 1.1.3
  patches = [ ./flask-caching-rebased.patch ];

  checkPhase = "nosetests";

  propagatedBuildInputs = [
    flask
    flask-caching
    cairocffi
    pyparsing
    pytz
    pyyaml
    raven
    six
    structlog
    tzlocal
  ];

  checkInputs = [ nose mock ];

  LD_LIBRARY_PATH = "${cairo.out}/lib";

  meta = with lib; {
    description = "Graphite-web, without the interface. Just the rendering HTTP API";
    homepage = "https://github.com/brutasse/graphite-api";
    license = licenses.asl20;
  };
}