How to specify buildPythonPackage wheel Python versions, ABI, and platform tags?

(Original post, feel free to answer there.)

When using buildPythonPackage the resulting wheel ends up as $dist/${pname}-${version}-py2.py3-none-any.whl. py2.py3 are the Python versions, none is the ABI, and any is the platform. How do I specify these when building the package? The closest thing to a reference I could find in nixpkgs/pkgs/development/interpreters/python was computeWheelUrl, which takes python ? "py2.py3", abi ? "none", and platform ? "any".

See the PEP specifying the wheel format:

1 Like

That’s where I learned about the filename format. It doesn’t help with telling buildPythonPackage anything, as far as I can tell.