Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k 2, django, django_tagging, whisper, pycairo, cairocffi, ldap, memcached, pytz, urllib3, scandir 3}: 4buildPythonPackage rec { 5 pname = "graphite-web"; 6 version = "1.1.7"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "b3cb3b9affe1b9e3777aab046416b3d545390ceea4d35d55c753b1e4732eaad0"; 11 }; 12 13 patches = [ 14 ./update-django-tagging.patch 15 ]; 16 17 propagatedBuildInputs = [ 18 django django_tagging whisper pycairo cairocffi 19 ldap memcached pytz urllib3 scandir 20 ]; 21 22 # Carbon-s default installation is /opt/graphite. This env variable ensures 23 # carbon is installed as a regular python module. 24 GRAPHITE_NO_PREFIX="True"; 25 26 preConfigure = '' 27 substituteInPlace webapp/graphite/settings.py \ 28 --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')" 29 ''; 30 31 meta = with stdenv.lib; { 32 homepage = "http://graphiteapp.org/"; 33 description = "Enterprise scalable realtime graphing"; 34 maintainers = with maintainers; [ offline basvandijk ]; 35 license = licenses.asl20; 36 }; 37}