Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / graphite-web / default.nix
blob81260110f929bd29213ef548d2a194d5a4951056
1 { lib, buildPythonPackage, fetchPypi
2 , django
3 , memcached
4 , txamqp
5 , django_tagging
6 , gunicorn
7 , pytz
8 , pyparsing
9 , cairocffi
10 , whisper
11 , whitenoise
12 , scandir
13 , urllib3
14 , six
17 buildPythonPackage rec {
18   pname = "graphite-web";
19   version = "1.1.7";
21   src = fetchPypi {
22     inherit pname version;
23     sha256 = "b3cb3b9affe1b9e3777aab046416b3d545390ceea4d35d55c753b1e4732eaad0";
24   };
26   patches = [
27     ./update-django-tagging.patch
28   ];
30   propagatedBuildInputs = [
31     django
32     memcached
33     txamqp
34     django_tagging
35     gunicorn
36     pytz
37     pyparsing
38     cairocffi
39     whisper
40     whitenoise
41     scandir
42     urllib3
43     six
44   ];
46   # Carbon-s default installation is /opt/graphite. This env variable ensures
47   # carbon is installed as a regular python module.
48   GRAPHITE_NO_PREFIX="True";
50   preConfigure = ''
51     substituteInPlace webapp/graphite/settings.py \
52       --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
53   '';
55   pythonImportsCheck = [ "graphite" ];
57   meta = with lib; {
58     homepage = "http://graphiteapp.org/";
59     description = "Enterprise scalable realtime graphing";
60     maintainers = with maintainers; [ offline basvandijk ];
61     license = licenses.asl20;
62   };