Python Function Build Failed

I am trying to setup a code repository for workshop UDFs in Python. I have done this many times via typescript, but am unable to get the python functions to build properly.

The error that I am getting below:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':python-functions:testVersions'.
> Execution failed with non-zero exit code: 1
  
  [STDERR]
  ERROR   × failed to solve environment
    ╰─▶ Cannot solve the request because of: No candidates were found for pytest ==7.2.1.
        
  
    An error occurred while executing the command with Hawk 0.215.0.

This error occurs upon creation of the code repository and causes the gradle task to fail before I even try to build the function.

Has anyone had this problem or know how to fix it? I tried to install pytest into the code repository, but it errors out.