dev-python/pytest-socket: new package, add 0.7.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-03-29 21:19:40 +01:00
parent d18516a599
commit d77426e3c5
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST pytest_socket-0.7.0.tar.gz 12389 BLAKE2B e99e607e1a614c1e59a1d0d3a2eb00124e43906af5b25b812e7b7975f80e7b31bf5900403e1618e41583e2438bbd25a17fd984f9460356876305de748a376bd0 SHA512 b32d0077287cbdea19c65f750f904084aeb9ede6b95916a471b4d16ba89648a77b799d33d1b33e1aee0fa7560bd9fe532fc1e59406aee08648efe35499fc936b

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>tupone@gentoo.org</email>
<name>Tupone Alfredo</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">pytest-socket</remote-id>
<remote-id type="github">miketheman/pytest-socket</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,39 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="Pytest Plugin to disable socket calls during tests"
HOMEPAGE="
https://github.com/miketheman/pytest-socket/
https://pypi.org/project/pytest-socket/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/pytest[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_test() {
local EPYTEST_DESELECT=(
tests/test_async.py::test_starlette
tests/test_restrict_hosts.py::test_help_message
)
distutils-r1_src_test
}