@ -69,8 +69,6 @@ let
# See build-setupcfg/default.nix for documentation.
buildSetupcfg = import ../build-support/build-setupcfg self ;
graphiteVersion = " 1 . 0 . 2 " ;
fetchPypi = makeOverridable ( { format ? " s e t u p t o o l s " , . . . } @ attrs :
let
fetchWheel = { pname , version , sha256 , python ? " p y 2 . p y 3 " , abi ? " n o n e " , platform ? " a n y " }:
@ -4782,13 +4780,14 @@ in {
django_tagging = callPackage ../development/python-modules/django_tagging { } ;
django_tagging_0_4_3 = if
self . django != self . django_1_8
self . django . version != " 1 . 8 . 1 8 "
then throw " d j a n g o _ t a g g i n g _ 0 _ 4 _ 3 s h o u l d b e b u i l d w i t h d j a n g o _ 1 _ 8 "
else ( callPackage ../development/python-modules/django_tagging { } ) . overrideAttrs ( attrs : rec {
name = " d j a n g o - t a g g i n g - 0 . 4 . 3 " ;
pname = " d j a n g o - t a g g i n g " ;
version = " 0 . 4 . 3 " ;
src = pkgs . fetchurl {
url = " m i r r o r : / / p y p i / d / d j a n g o - t a g g i n g / ${ name } . t a r . g z " ;
src = fetchPypi {
inherit pname version ;
sha256 = " 0 6 1 7 a z p m p 6 j p g 3 d 8 8 v 2 i r 9 7 q r c 9 a q c s 2 s 9 g y v v 9 b g f 2 c p 5 5 k h x h s " ;
} ;
propagatedBuildInputs = with self ; [ django ] ;
@ -15401,24 +15400,7 @@ EOF
whichcraft = callPackage ../development/python-modules/whichcraft { } ;
whisper = buildPythonPackage rec {
name = " w h i s p e r - ${ version } " ;
version = graphiteVersion ;
src = pkgs . fetchurl {
url = " m i r r o r : / / p y p i / w / w h i s p e r / ${ name } . t a r . g z " ;
sha256 = " 1 v 1 b i 3 f l 1 i 6 p 4 z 4 k i 6 9 2 b y k r k w 6 9 0 7 d n 3 m f q 0 1 5 1 f 7 0 l v i 3 z p n s 3 " ;
} ;
# error: invalid command 'test'
doCheck = false ;
meta = {
homepage = http://graphite.wikidot.com/ ;
description = " F i x e d s i z e r o u n d - r o b i n s t y l e d a t a b a s e " ;
maintainers = with maintainers ; [ rickynils offline ] ;
} ;
} ;
whisper = callPackage ../development/python-modules/whisper { } ;
worldengine = buildPythonPackage rec {
name = " w o r l d e n g i n e - ${ version } " ;
@ -15468,27 +15450,7 @@ EOF
} ;
} ;
carbon = buildPythonPackage rec {
name = " c a r b o n - ${ version } " ;
version = graphiteVersion ;
disabled = isPy3k ;
src = pkgs . fetchurl {
url = " m i r r o r : / / p y p i / c / c a r b o n / ${ name } . t a r . g z " ;
sha256 = " 1 4 2 s m p m g b n j i n v f b 6 s 4 i j a z i s h 4 v f g z y d 8 z c m d k h 5 5 y 0 5 1 f k i x k n " ;
} ;
propagatedBuildInputs = with self ; [ whisper txamqp zope_interface twisted ] ;
meta = {
homepage = http://graphite.wikidot.com/ ;
description = " B a c k e n d d a t a c a c h i n g a n d p e r s i s t e n c e d a e m o n f o r G r a p h i t e " ;
maintainers = with maintainers ; [ rickynils offline ] ;
license = licenses . asl20 ;
} ;
} ;
carbon = callPackage ../development/python-modules/carbon { } ;
ujson = buildPythonPackage rec {
name = " u j s o n - 1 . 3 5 " ;
@ -15616,126 +15578,15 @@ EOF
} ;
} ;
graphite_web = if
self . django != self . django_1_8
|| self . django_tagging != self . django_tagging_0_4_3
then throw " g r a p h i t e _ w e b s h o u l d b e b u i l d w i t h d j a n g o _ 1 _ 8 a n d d j a n g o _ t a g g i n g _ 0 _ 4 _ 3 "
else buildPythonPackage rec {
name = " g r a p h i t e - w e b - ${ version } " ;
disabled = isPy3k ;
version = graphiteVersion ;
src = pkgs . fetchurl rec {
url = " m i r r o r : / / p y p i / g / g r a p h i t e - w e b / ${ name } . t a r . g z " ;
sha256 = " 0 q 8 b w l j 7 5 j q y z m a z f s i 5 s a 2 6 x l 5 8 s s a 8 w d x m 2 l 4 j 0 j q y n 8 x p f n m c " ;
} ;
propagatedBuildInputs = with self ; [
django django_tagging whisper pycairo cairocffi
ldap memcached pytz urllib3 scandir
] ;
postInstall = ''
wrapProgram $ out/bin/run-graphite-devel-server.py \
- - prefix PATH : $ { pkgs . which } /bin
'' ;
preConfigure = ''
# graphite is configured by storing a local_settings.py file inside the
# graphite python package. Since that package is stored in the immutable
# Nix store we can't modify it. So how do we configure graphite?
#
# First of all we rename "graphite.local_settings" to
# "graphite_local_settings" so that the settings are not looked up in the
# graphite package anymore. Secondly we place a directory containing a
# graphite_local_settings.py on the PYTHONPATH in the graphite module
# <nixpkgs/nixos/modules/services/monitoring/graphite.nix>.
substituteInPlace webapp/graphite/settings.py \
- - replace " g r a p h i t e . l o c a l _ s e t t i n g s " " g r a p h i t e _ l o c a l _ s e t t i n g s "
substituteInPlace webapp/graphite/settings.py \
- - replace " j o i n ( W E B A P P _ D I R , ' c o n t e n t ' ) " " j o i n ( ' $ o u t ' , ' w e b a p p ' , ' c o n t e n t ' ) "
'' ;
# error: invalid command 'test'
doCheck = false ;
meta = {
homepage = http://graphite.wikidot.com/ ;
description = " E n t e r p r i s e s c a l a b l e r e a l t i m e g r a p h i n g " ;
maintainers = with maintainers ; [ rickynils offline ] ;
} ;
} ;
graphite-web = callPackage ../development/python-modules/graphite-web { } ;
graphite_api = callPackage ../development/python-modules/graphite-api { } ;
graphite_beacon = buildPythonPackage rec {
name = " g r a p h i t e _ b e a c o n - 0 . 2 7 . 0 " ;
src = pkgs . fetchurl {
url = " m i r r o r : / / p y p i / g / g r a p h i t e _ b e a c o n / ${ name } . t a r . g z " ;
sha256 = " 0 3 b p 4 w y f n 3 x h c q y v s 5 h n k 1 n 8 7 m 4 s m s m m 1 p 7 q p 4 5 9 m 7 j 8 h w p b q 2 k s " ;
} ;
propagatedBuildInputs = [ self . tornado self . pyyaml self . funcparserlib ] ;
preBuild = " > r e q u i r e m e n t s . t x t " ;
meta = {
description = " A s i m p l e a l e r t i n g a p p l i c a t i o n f o r G r a p h i t e m e t r i c s " ;
homepage = https://github.com/klen/graphite-beacon ;
maintainers = [ maintainers . offline ] ;
license = licenses . mit ;
} ;
} ;
graphite_influxdb = buildPythonPackage rec {
name = " g r a p h i t e - i n f l u x d b - 0 . 3 " ;
src = pkgs . fetchgit {
url = " h t t p s : / / g i t h u b . c o m / v i m e o / g r a p h i t e - i n f l u x d b . g i t " ;
rev = " 2 2 7 3 d 1 2 a 2 4 e 1 d 8 0 4 6 8 5 a 3 6 d e b f d 4 2 2 4 b 7 4 1 6 b 6 2 f " ;
sha256 = " 1 v 0 0 f g r n m s d 9 c 0 a h g g y w 9 s i a 5 m 7 d y z z 1 6 i 5 p a 4 v y 6 w 2 s b f y r m m 4 v " ;
} ;
propagatedBuildInputs = with self ; [ influxdb graphite_api ] ;
passthru . moduleName = " g r a p h i t e _ i n f l u x d b . I n f l u x d b F i n d e r " ;
graphite_beacon = callPackage ../development/python-modules/graphite_beacon { } ;
meta = {
description = " A n i n f l u x d b b a c k e n d f o r G r a p h i t e - w e b a n d g r a p h i t e - a p i " ;
homepage = https://github.com/vimeo/graphite-influxdb ;
license = licenses . asl20 ;
} ;
} ;
graphite_pager = buildPythonPackage rec {
name = " g r a p h i t e - p a g e r - ${ version } " ;
version = " 2 b b f e 9 1 2 2 0 e c 1 e 0 c a 1 c d f 4 b 5 5 6 4 3 8 6 4 8 2 a 4 4 e d 7 d " ;
src = pkgs . fetchgit {
url = " h t t p s : / / g i t h u b . c o m / o f f l i n e h a c k e r / g r a p h i t e - p a g e r . g i t " ;
sha256 = " 0 y l a l 0 v k c 2 y r j v s s f z 1 g l s 8 4 y k 9 v k v v k x 3 p y v 4 l x 1 5 j m 2 q q z d m x d " ;
rev = version ;
} ;
buildInputs = with self ; [ nose mock ] ;
propagatedBuildInputs = with self ; [
jinja2 pyyaml redis requests pagerduty
python-simple-hipchat pushbullet
] ;
patchPhase = " > r e q u i r e m e n t s . t x t " ;
checkPhase = " n o s e t e s t s " ;
meta = {
description = " A s i m p l e a l e r t i n g a p p l i c a t i o n f o r G r a p h i t e m e t r i c s " ;
homepage = https://github.com/seatgeek/graphite-pager ;
maintainers = with maintainers ; [ offline ] ;
license = licenses . bsd2 ;
} ;
} ;
influxgraph = callPackage ../development/python-modules/influxgraph { } ;
graphitepager = callPackage ../development/python-modules/graphitepager { } ;
pyspotify = buildPythonPackage rec {
name = " p y s p o t i f y - ${ version } " ;