Flask & Fly.io, flyctl deploy leading to builder errors, "failed to fetch an image or build from source: executing lifecycle: failed with status code: 51"

When running flyctl launch, the build goes fine up until the builder tries installing a package called evdev, from here, the build fails.

Here is a snippet from the console:

× Encountered error while trying to install package.
╰─> evdev

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

error: exit status 1
ERROR: failed to build: exit status 1
Error failed to fetch an image or build from source: executing lifecycle: failed with status code: 51

and image of the output:

Is there anything I can do to fix this issue? I have been unable to find any information on this.

Thank you.

Found a solution myself, for anyone else who struggles with this:
My requirements.txt file was quite large, 34+ lines, and contained way more than the 3 libraries my Python files used to run. I believe some of these resources were deprecated.
I was able to shrink requirements.txt to only the required dependencies, now 4 lines, using pipreqs.
Fly can now successfully deploy.