summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2021-08-15 02:16:35 +0200
committerLouis Sautier <sbraz@gentoo.org>2021-08-15 04:22:37 +0200
commit6a48083ab47f71d17bf0be313c6c1bbda17f8571 (patch)
treedfd7beb15ea7bf2b0b9a0c31cca5ef76c844f919 /dev-python/aioresponses
parentx11-terms/gnome-terminal: Stabilize 3.40.3 amd64, #806322 (diff)
downloadgentoo-6a48083ab47f71d17bf0be313c6c1bbda17f8571.tar.gz
gentoo-6a48083ab47f71d17bf0be313c6c1bbda17f8571.tar.bz2
gentoo-6a48083ab47f71d17bf0be313c6c1bbda17f8571.zip
dev-python/aioresponses: new package, test dep. of zeep, v0.7.2
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/aioresponses')
-rw-r--r--dev-python/aioresponses/Manifest1
-rw-r--r--dev-python/aioresponses/aioresponses-0.7.2.ebuild36
-rw-r--r--dev-python/aioresponses/metadata.xml14
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/aioresponses/Manifest b/dev-python/aioresponses/Manifest
new file mode 100644
index 000000000000..542a81edf4e8
--- /dev/null
+++ b/dev-python/aioresponses/Manifest
@@ -0,0 +1 @@
+DIST aioresponses-0.7.2.tar.gz 28135 BLAKE2B 300d06ed43ad81d61fe9cab4002b9e9bb062a48aabed8aed21e3a8e26d8e153546ed079e6dda6ef26c6df2e843663ed9e02b2855ac71e011b873da926923a72d SHA512 847c687990c38733c714cfd7b4f268406392aeea6764f084dae25f43246b7b5731f149067fb921864b1b22c9e7b2ca66254ff311d726333d0b23a5566ab18029
diff --git a/dev-python/aioresponses/aioresponses-0.7.2.ebuild b/dev-python/aioresponses/aioresponses-0.7.2.ebuild
new file mode 100644
index 000000000000..c625c0e4446e
--- /dev/null
+++ b/dev-python/aioresponses/aioresponses-0.7.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Helper to mock/fake web requests in Python's aiohttp package"
+HOMEPAGE="https://github.com/pnuckowski/aioresponses"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/aiohttp[${PYTHON_USEDEP}]"
+BDEPEND="
+ dev-python/pbr[${PYTHON_USEDEP}]
+ test? (
+ dev-python/ddt[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+python_test() {
+ local deselect=(
+ # These tests require Internet access
+ tests/test_aioresponses.py::AIOResponsesTestCase::test_address_as_instance_of_url_combined_with_pass_through
+ tests/test_aioresponses.py::AIOResponsesTestCase::test_pass_through_with_origin_params
+ )
+ epytest ${deselect[@]/#/--deselect }
+}
diff --git a/dev-python/aioresponses/metadata.xml b/dev-python/aioresponses/metadata.xml
new file mode 100644
index 000000000000..e69264d391f1
--- /dev/null
+++ b/dev-python/aioresponses/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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">aioresponses</remote-id>
+ <remote-id type="github">pnuckowski/aioresponses</remote-id>
+ <bugs-to>https://github.com/pnuckowski/aioresponses/issues</bugs-to>
+ </upstream>
+</pkgmetadata>