Digitale bierlijst

shell.nix 454B

1234567891011121314151617181920212223242526272829303132
  1. let
  2. sources = import ../nix/sources.nix {};
  3. pkgs = import sources.nixpkgs {};
  4. pythonEnv = pkgs.python3.withPackages (ps: with ps; [
  5. black
  6. mypy
  7. flask
  8. sqlalchemy
  9. flask_sqlalchemy
  10. alembic
  11. requests
  12. raven
  13. ]);
  14. in
  15. pkgs.mkShell {
  16. name = "piket-server-shell";
  17. packages = [
  18. pythonEnv
  19. pkgs.uwsgi
  20. ];
  21. shellHook = ''
  22. export PYTHONPATH=..
  23. export FLASK_APP=piket_server
  24. '';
  25. }