Trouble installing python openai on a Nextjs project with nix

Hello,

I am having trouble installing openai onto my project.

I am running a Nextjs replit that spawns a python shell and runs a script that uses requests, beautiful soup, and openai.

I was able to add requests and beautiful soup to the replit.nix file; however, when I tried to add openai it gives me the following error:
error: attribute ‘openai’ missing, at /home/runner/…/replit.nix:18:7
(use ‘–show-trace’ to show detailed location information)

I’ve also tried installing it with pip with no results. All other packages installed this way seem to work fine…

This is my current replit.nix file

{ pkgs }: {
	deps = [
  pkgs.nodejs-16_x
        pkgs.nodePackages.typescript-language-server
        pkgs.nodePackages.yarn
        pkgs.replitPackages.jest
    pkgs.python39
      pkgs.python39Packages.requests
      pkgs.python39Packages.beautifulsoup4
      pkgs.python39Packages.python-dotenv
  		pkgs.python39Packages.pip
      pkgs.python39Packages.openai
	];
}

I also tried saving things into a pyproject.toml but I’m not sure how to install it along side a package.json in the same project. Any help for this method or others would be much appreciated!

Please send me the link to your repl so I can take a look