Get rid of poetry
It is easier to use plain pip if you want to prepare and install package dependencies offline. So let's use setuptools as a build tool and plain pip as a package manager. Pip allows you to download all the dependencies to a directory and then use this directory as a package repository.