diff options
-rw-r--r-- | dev-python/pytest-httpserver/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-httpserver/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild | 35 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/pytest-httpserver/Manifest b/dev-python/pytest-httpserver/Manifest new file mode 100644 index 000000000000..817f1cc47e15 --- /dev/null +++ b/dev-python/pytest-httpserver/Manifest @@ -0,0 +1 @@ +DIST pytest-httpserver-1.0.4.gh.tar.gz 78911 BLAKE2B 425f72438797b55a84662f580dd9bfc1d6dd8a0513587e72b6e1de7e669eee75c777fdd6c2cfcbc92273737dd47568b48a22f12e8a40952f82a599f30705a604 SHA512 e80754910117736fd172d7bd5e5fc41721fab8adc705b72f0ee4cd866c878ed267ad3819645fd567e3af2c9e53deecb3749f1a873d72ff9e234c4fdd7f7cabea diff --git a/dev-python/pytest-httpserver/metadata.xml b/dev-python/pytest-httpserver/metadata.xml new file mode 100644 index 000000000000..7c1d1a182b30 --- /dev/null +++ b/dev-python/pytest-httpserver/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">pytest-httpserver</remote-id> + <remote-id type="github">csernazs/pytest-httpserver</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild new file mode 100644 index 000000000000..73fe95f10f4b --- /dev/null +++ b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP server for pytest to test HTTP clients" +HOMEPAGE="https://github.com/csernazs/pytest-httpserver" +SRC_URI="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + test? ( + dev-python/requests[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -i -e '/tests\//d' pyproject.toml || die + + distutils-r1_python_prepare_all +} + +python_test() { + epytest -p no:localserver +} |