summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-02 00:40:29 -0800
committerZac Medico <zmedico@gentoo.org>2021-03-02 00:49:31 -0800
commite32428d4d9562191b80cef8101d58ec7325da721 (patch)
tree132867e3d1458ec845a7fb8c1c04ff6911dfb9e1 /net-misc
parentdev-python/ptyprocess: Remove old (diff)
downloadgentoo-e32428d4d9562191b80cef8101d58ec7325da721.tar.gz
gentoo-e32428d4d9562191b80cef8101d58ec7325da721.tar.bz2
gentoo-e32428d4d9562191b80cef8101d58ec7325da721.zip
net-misc/socket-burst-dampener: Add pytest dep
Closes: https://bugs.gentoo.org/773508 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild b/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
index b4b2b3b8128..6edd95a810e 100644
--- a/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
+++ b/net-misc/socket-burst-dampener/socket-burst-dampener-1.3.1.ebuild
@@ -13,9 +13,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86"
SLOT="0"
-IUSE=""
+IUSE="test"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ )
+"
src_prepare() {
sed -i "s:^\(__version__ =\).*:\\1 \"${PV}\":" src/${PN//-/_}.py || die