diff --git a/dependencies.txt b/dependencies.txt new file mode 100644 index 0000000..5b0e9fc --- /dev/null +++ b/dependencies.txt @@ -0,0 +1,5 @@ +flask==3.1.2 +python-dotenv +psycopg-binary==3.2.10 +loguru +pydantic diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..ad3b72f --- /dev/null +++ b/shell.nix @@ -0,0 +1,19 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + buildInputs = with pkgs; [ + python3 + ]; + + shellHook = '' + if [ ! -d ".venv" ]; then + python -m venv .venv + fi + + source .venv/bin/activate + + if [ -f "dependencies.txt" ]; then + pip install -r dependencies.txt + fi + ''; +}