Description
There is ongoing confusion in ebuilds for accessing PyPi sources. Web search also discovered that PyPi organization changed URI accessing scheme in late 2016.
While researching an update to a PyPi based package, a review of how another Linux distribution handled the package revealed that they make available variables for simplifying URI to download sources. A similar mechanism can be imported into Funtoo/Gentoo trees, if desired.
pypi.eclass populates variables for use in ebuilds. Eclass requires python be defined first. Variables for web and source URI, based on package data using the scheme PyPi organization has defined, can then be used in ebuilds.
In an ebuild, the 'inhert' line becomes:
inhert {distutils-r1|python_any-r1|python_all-r1} pypi
And now the ebuild web and source URIs would be reduced to:
HOMEPAGE="${PYPI_PROJ_WEB_URI}" SRC_URI="${PYPI_PROJ_SRC_URI}"