python-pkgs:
  pkg.installed:
    - pkgs:
      - python-dev
      - python-pip
      - build-essential


{% for pkg in ['ghdiff', 'tornado', 'pyzmq', 'itsdangerous', 'boto', 'redis', 'simplejson', 'sockjs-tornado', 'flask', 'flask-bcrypt', 'flask-login', 'flask-assets', 'gittle', 'gevent', 'lxml', 'markdown2', 'recaptcha-client', 'RethinkORM' ] %}
{{ pkg }}-pip:
  pip:
    - name: {{ pkg }}
    - installed
    - require:
      - pkg.installed: common-pkgs
      - pkg.installed: rethinkdb
{% endfor %}