Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / graphite-api / default.nix
blob51300847bbbce55d4b992462356ef559166e539e
1 { buildPythonPackage, fetchFromGitHub, lib, flask, flask-caching, cairocffi, pyparsing, pytz, pyyaml
2 , raven, six, structlog, tzlocal, nose, mock, cairo, isPyPy
3 }:
5 buildPythonPackage rec {
6   pname = "graphite-api";
7   version = "1.1.3";
9   disabled = isPyPy;
11   src = fetchFromGitHub {
12     owner = "brutasse";
13     repo = "graphite-api";
14     rev = version;
15     sha256 = "0sz3kav2024ms2z4q03pigcf080gsr5v774z9bp3zw29k2p47ass";
16   };
18   # https://github.com/brutasse/graphite-api/pull/239 rebased onto 1.1.3
19   patches = [ ./flask-caching-rebased.patch ];
21   checkPhase = "nosetests";
23   propagatedBuildInputs = [
24     flask
25     flask-caching
26     cairocffi
27     pyparsing
28     pytz
29     pyyaml
30     raven
31     six
32     structlog
33     tzlocal
34   ];
36   checkInputs = [ nose mock ];
38   LD_LIBRARY_PATH = "${cairo.out}/lib";
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   };