Poetry project missing dependencies

Hello, I’m trying to package a program called nvsmi that’s used as a dependency for another project.

This is my current derivation:

{pkgs ? import <nixpkgs> {}}:
with pkgs.python3Packages;
  buildPythonPackage rec {
    pname = "nvsmi";
    version = "0.4.2";
    pyproject = true;
    disabled = pythonOlder "3.6";

    src = fetchPypi {
      pname = pname;
      version = version;
      sha256 = "sha256-waORx8Ta3G7FcpCf8DckUdRk663BROWqX7vMiT3Le/o=";
    };

    build-system = [poetry-core];

    dependencies = [
      # Build system
      poetry-core

      pbs-installer
      tomlkit
      cleo
      shellingham
      fastjsonschema
      dulwich
      requests-toolbelt
      pkginfo
      trove-classifiers
      keyring
      requests
      cachecontrol
      findpython
      httpx
      zstandard
    ];

    nativeBuildInputs = [pkgs.poetry pkgs.pre-commit poetry-core];
  }

And this is the error I’m getting:

       > Sourcing pypa-install-hook                                                                                                                           
       > Using pypaInstallPhase                                                
       > Sourcing python-imports-check-hook.sh                                 
       > Using pythonImportsCheckPhase                                         
       > Sourcing python-namespaces-hook                                                                                                                      
       > Sourcing python-catch-conflicts-hook.sh                                                                                                              
       > Sourcing pytest-check-hook                                            
       > Using pytestCheckPhase                                                
       > Running phase: unpackPhase                                                                                                                           
       > unpacking source archive /nix/store/li01j1gkcn9v53bwjchzqp9zgjdagi80-nvsmi-0.4.2.tar.gz
       > source root is nvsmi-0.4.2                                            
       > setting SOURCE_DATE_EPOCH to timestamp 1582882316 of file "nvsmi-0.4.2/PKG-INFO"                                                                     
       > Running phase: patchPhase                                                                                                                            
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase                                         
       > no configure script, doing nothing                                                                                                                   
       > Running phase: buildPhase                                                                                                                            
       > Executing pypaBuildPhase                                              
       > Creating a wheel...                                                   
       > pypa build flags: --no-isolation --outdir dist/ --wheel                                                                                              
       > * Getting build dependencies for wheel...
       >                                                                       
       > ERROR Missing dependencies:                                                                                                                          
       >         poetry>=0.12                                                                                                                                 
       >    poetry-core==2.2.1