Python flask app flake

{
  description = "LIMS Dashboard Flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils}: flake-utils.lib.eachSystem(system: 
    let
      pkgs = nixpkgs.legacyPackages.${system};
    in
      {
        devShells = pkgs.mkShell {
          buildInputs = [ pkgs.python3Packages.flask ];
        };

      }
  );
}

I am trying to make a flake for my python app but it seems that my flake is not working and I would love a bit of help.

I ended up figuring it out with the following code.

{
  description = "LIMS Dashboard Flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils}: flake-utils.lib.eachSystem [ "aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]
  (system: 
    let
      pkgs = import nixpkgs {inherit system;};
    in
      {
        devShells.default = pkgs.mkShell {
          packages = [ pkgs.python312Packages.flask ];
        };

      });
}