nix-community / pip2nix

Freeze pip-installable packages into Nix expressions [maintainer=@datakurre]
175 stars 26 forks source link

Wheels by platform #94

Open ozobotnovako opened 7 months ago

ozobotnovako commented 7 months ago

Could wheels for user selected platform be also supported?

I what I suggest is to add an option, that would allow to target specific platform. So if user entered pip2nix generate --platform manylinux2014_aarch64 ..., wheels for manylinux2014_aarch64 would be used if found.

It seems that passing TargetPython when constructing pip finder should do the job:

            target_python = TargetPython("manylinux2014_aarch64")
            finder = self._build_package_finder(options, session, target_python)