I would like to propose new package python-setuptools-scm.
(Only if Marco wasn't faster)
setuptools_scm extracts Python package versions from git or hg metadata instead of
declaring them as the version argument or in a SCM managed file.
This package is the new dependency for existing "duplicity" Python package. It prevents
from upgrading to duplicity version 2.2.2
Thank you,
Libor
NAME="python-setuptools-scm"
VERSION="8.0.4"
RELEASE=1
ARCH="noarch"
PYTHON_WHEEL_VERSIONS="3.8:3.9"
inherit python-wheel
HOMEPAGE="https://setuptools-scm.readthedocs.io/en/latest/"
LICENSE="MIT License"
CATEGORY=Python
SUMMARY="setuptools_scm extracts Python package versions from git or hg
metadata instead of declaring them as the version argument or in a SCM managed
file."
DESCRIPTION="Additionally setuptools_scm provides setuptools with a list of
files that are managed by the SCM (i.e. it automatically adds all the
SCM-managed files to the sdist). Unwanted files must be excluded via
MANIFEST.in."
BUILD_REQUIRES+="python3.8 python3.8-pip python3.9 python3.9-pip"
src_install() {
cd ${B}
python_wheel_install
}