diff options
Diffstat (limited to 'dev-python/cbor2/cbor2-5.1.0.ebuild')
-rw-r--r-- | dev-python/cbor2/cbor2-5.1.0.ebuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/dev-python/cbor2/cbor2-5.1.0.ebuild b/dev-python/cbor2/cbor2-5.1.0.ebuild index 0a40842019e6..0ab2f141e004 100644 --- a/dev-python/cbor2/cbor2-5.1.0.ebuild +++ b/dev-python/cbor2/cbor2-5.1.0.ebuild @@ -17,14 +17,25 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" -DEPENDS=" +DEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] +" +BDEPEND=" test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] ) " RDEPEND="${DEPEND}" +python_prepare_all() { + + # remove pytest-cov dep + sed -e "s/pytest-cov//" \ + -e "s/--cov //" \ + -i setup.cfg || die + + distutils-r1_python_prepare_all +} + distutils_enable_tests pytest |