Indeed, a wheel with pinned dependencies (both direct and indirect) would perfectly do the job, but i did not found a way to create 2 wheels from the same repository (using poetry), one that pinned one not. My request on poetry has been denied some times ago:
Right… one more example showing that Python packaging is better at dealing with libraries than applications.
If I were you I guess maybe I would investigate writing a script that modifies the pyproject.toml (based on the lockfile) and use it in a CI/CD pipeline.