Making pynfogen run using poetry2nix

Hey, I’m currently trying to make pynfogen run on NixOS. I tried using poetry2nix, by putting this very basic flake in the repo of pynfogen:

{
  inputs = {
      poetry2nix.url = "github:nix-community/poetry2nix";
  };

  outputs = { self, poetry2nix}: {
      packages.x86_64-linux.default = poetry2nix.legacyPackages.x86_64-linux.mkPoetryApplication {
          projectDir = ./.;
      };
  };
}```

However, when I run nix build this just shows “evaluating…”, eats up all my memory and doesn’t finish in over an hour. Do you have any advice for me?