summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-31 12:17:56 +0100
committerSam James <sam@gentoo.org>2022-05-31 12:20:05 +0100
commitc09a2622f9ea123899e7c94811279a41af146ae6 (patch)
tree3dd964c5d9cde54295a154c59d47256e702836d2 /dev-python/pytest-httpserver
parentdev-python/podcastparser: add github upstream metadata (diff)
downloadgentoo-c09a2622f9ea123899e7c94811279a41af146ae6.tar.gz
gentoo-c09a2622f9ea123899e7c94811279a41af146ae6.tar.bz2
gentoo-c09a2622f9ea123899e7c94811279a41af146ae6.zip
dev-python/pytest-httpserver: new package, add 1.0.4
Bug: https://bugs.gentoo.org/795165 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pytest-httpserver')
-rw-r--r--dev-python/pytest-httpserver/Manifest1
-rw-r--r--dev-python/pytest-httpserver/metadata.xml13
-rw-r--r--dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild35
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
+}