diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2021-03-23 16:29:14 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-03-23 16:29:14 -0700 |
commit | bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a (patch) | |
tree | 34d665341e4eaa6750beb0900f7a915b3493b6a6 /dev-python/pycurl-requests | |
parent | net-wireless/bluez: Fix sed for cupsdir (diff) | |
download | gentoo-bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a.tar.gz gentoo-bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a.tar.bz2 gentoo-bc7bfb88c6c872ddffc49ebc657e5c3da3833b0a.zip |
dev-python/pycurl-requests: New package
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python/pycurl-requests')
-rw-r--r-- | dev-python/pycurl-requests/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch | 20 | ||||
-rw-r--r-- | dev-python/pycurl-requests/metadata.xml | 9 | ||||
-rw-r--r-- | dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild | 26 |
4 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/pycurl-requests/Manifest b/dev-python/pycurl-requests/Manifest new file mode 100644 index 000000000000..3da4d1e9024e --- /dev/null +++ b/dev-python/pycurl-requests/Manifest @@ -0,0 +1 @@ +DIST pycurl-requests-0.2.0.tar.gz 22962 BLAKE2B 9e28422e910ab88f2f6ace1684cd35a89eccde9eed9d63f48cb2d6f0caa30811016365fbbffc2bdd2dd8b05a3b248142a5822c092c9d40ebaabeed4ef068c659 SHA512 3bf091ff47e376a23f9046dbcc5631199da9434911d4140f5d09e5091b81f05c8cd8094528b7ac7d74f7a4b085a6dfd40bec81c66fde020a0680e2237b7af5b2 diff --git a/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch new file mode 100644 index 000000000000..47869defd5ea --- /dev/null +++ b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch @@ -0,0 +1,20 @@ +diff --git a/pycurl_requests/tests/test_requests.py b/pycurl_requests/tests/test_requests.py +index 7d2c627..850d530 100644 +--- a/pycurl_requests/tests/test_requests.py ++++ b/pycurl_requests/tests/test_requests.py +@@ -160,6 +160,7 @@ def test_get_timeout_urllib3(http_server, timeout): + requests.get(http_server.base_url + '/slow', timeout=timeout) + + ++@pytest.mark.skip("not compatible with network-sandbox") + @pytest.mark.parametrize('timeout', [0.1, (0.1, None)]) + def test_get_connect_timeout(http_server, timeout): + with pytest.raises(requests.Timeout): +@@ -168,6 +169,7 @@ def test_get_connect_timeout(http_server, timeout): + requests.get(http_server.base_url + '/slow', timeout=timeout) + + ++@pytest.mark.skip("not compatible with network-sandbox") + @pytest.mark.skipif('urllib3' not in sys.modules, reason='urllib3 not available') + @pytest.mark.parametrize('timeout', [Timeout(connect=0.1), Timeout(total=0.1)]) + def test_get_connect_timeout_urllib3(http_server, timeout): diff --git a/dev-python/pycurl-requests/metadata.xml b/dev-python/pycurl-requests/metadata.xml new file mode 100644 index 000000000000..3fd976494203 --- /dev/null +++ b/dev-python/pycurl-requests/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <stabilize-allarches/> +</pkgmetadata> diff --git a/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild b/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild new file mode 100644 index 000000000000..a49a99ff7426 --- /dev/null +++ b/dev-python/pycurl-requests/pycurl-requests-0.2.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 + +DESCRIPTION="Requests-compatible interface for PycURL" +HOMEPAGE="https://github.com/dcoles/pycurl-requests" +SRC_URI="https://github.com/dcoles/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/pycurl-requests-0.2.0-test.patch" +) + +distutils_enable_tests pytest |