{ inputs = { nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable; flake-utils.url = github:numtide/flake-utils; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; dependencies = ps: with ps; [ fastapi uvicorn ]; devDependencies = ps: with ps; [ fastapi uvicorn python-lsp-server ]; in { devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ (python311.withPackages devDependencies) ]; }; }); }