From f1317d9384e4b8cbbd93ff4ceb8bd87fa9d3a4f1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Dec 2022 15:39:26 +0000 Subject: gentoo auto-resync : 17:12:2022 - 15:39:26 --- dev-python/pycurl/Manifest | 2 + dev-python/pycurl/pycurl-7.45.2.ebuild | 89 ++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 dev-python/pycurl/pycurl-7.45.2.ebuild (limited to 'dev-python/pycurl') diff --git a/dev-python/pycurl/Manifest b/dev-python/pycurl/Manifest index df6e40f75fdd..9f955fd81f58 100644 --- a/dev-python/pycurl/Manifest +++ b/dev-python/pycurl/Manifest @@ -1,4 +1,6 @@ AUX 7.44-fix-tests.patch 1679 BLAKE2B ca0126a6dc12203ba8409c70ffa5142288bc94fd07ccc4404ee6f19a8515a46cc4e257dd26a12266aa3263e359e9167daa3ef36bde9867d2a4346ce38fcaac1b SHA512 743fbc3335daccb4e1d21b4c0e659d87582120b21d1cacecf0725fed9fe1eb6251761fdb50814c04e79ac3b13408335b34072e94bc704d3c333b96eaa9d52f76 DIST pycurl-7.45.1.tar.gz 233879 BLAKE2B 8a6fe72f00cfd172b4f5e257f4526c4115047aa911d7fb3802d3bf105ac70dc866b27fa4878aae9f92229a5dd5108a2b5e1c9acfe93e1a94dac60d9405c5d5e6 SHA512 05639d484aac6d6688677589e391975158c5ef778456a47df575ad13fb8bd0db67ff8f5a39bdd99d82a67926aca421c01e687eec9d4fd87f32822b492b429635 +DIST pycurl-7.45.2.tar.gz 234245 BLAKE2B 16257a967d2867de08d83478f602d00b54316d37b6a544804e606a814f61507530fb7e1ef3247be824dfa22b9487a69bbfc9b1038b2b776ebc556b18ed2d93ca SHA512 8a82346395acfc0bd37a8c4d8d2b17e5ab4602710308ed50f9ed88c223c73f15f5b1c95fc6191708e3bd9d647e4bc5ec91f740de433dd87e2ae0796ac79879ac EBUILD pycurl-7.45.1.ebuild 2568 BLAKE2B e3f212c0ba6ee1caf06cfe7e5df2df7cf1a91b377979b252afc6d9b3cb6ac4910f1e40894d19cf127a335533c7924d34984ae49a31ac50ffe1f804e8d9861b04 SHA512 e3b561f3b481dad6aa8e3f7fbf200f2f4b3e4c756fe2cb50ed61a4a9117020fefe723184ebb08458242b591792549f393bbf3ae8a7180c86bdf3662cb7fbab06 +EBUILD pycurl-7.45.2.ebuild 2527 BLAKE2B e6f0ee1d47e2a6591acb5318ab3aa553c58bc87cc9167ba41e4da5635f88c6ad38527f37d8f14550587ad664522e50b9565ec102966646d1ad91eb9deb4b3893 SHA512 6b54a4d2a5a02d9fe4f8530ef7e7a4a684e7c027b26a0209c5dc389401e1e317df28af4361ff6ea1b24c2bd9487be6baea6851fd8c7ac942f6f83a50cdf914b4 MISC metadata.xml 1100 BLAKE2B dfc7fe054c7cc34c61bf58fef0378df304a539c28cbc0dff4ffff65ccc8892c38aaf1e275885fc54d2854d9acc6b382947038041f815b5941859be7cfe75523f SHA512 f1de0dccd625ae0b02ff9a55cbc1bbf7944faa24dba28ffd711c728001f180afa598a255132aea860ad616637325cdc653577af531b1a954a3994e8902c774aa diff --git a/dev-python/pycurl/pycurl-7.45.2.ebuild b/dev-python/pycurl/pycurl-7.45.2.ebuild new file mode 100644 index 000000000000..1a8602a390a0 --- /dev/null +++ b/dev-python/pycurl/pycurl-7.45.2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Python bindings for curl/libcurl" +HOMEPAGE=" + http://pycurl.io/ + https://github.com/pycurl/pycurl/ + https://pypi.org/project/pycurl/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl" + +# Depend on a curl with curl_ssl_* USE flags. +# libcurl must not be using an ssl backend we do not support. +# If the libcurl ssl backend changes pycurl should be recompiled. +# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl +# does not need to initialize gcrypt threading and we do not need to +# explicitly link to libgcrypt. +DEPEND=" + >=net-misc/curl-7.25.0-r1:=[ssl=] + ssl? ( + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= ) + curl_ssl_openssl? ( dev-libs/openssl:= ) + ) +" + +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # docs installed into the wrong directory + sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die + # TODO + sed -e 's:test_socks5_gssapi_nec_setopt:_&:' \ + -i tests/option_constants_test.py || die + + distutils-r1_python_prepare_all +} + +python_configure_all() { + # Override faulty detection in setup.py, bug #510974. + export PYCURL_SSL_LIBRARY=${CURL_SSL} +} + +src_test() { + emake -C tests/fake-curl/libcurl CC="$(tc-getCC)" + + distutils-r1_src_test +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_DESELECT=( + # refcounting tests are unreliable + tests/memory_mgmt_test.py::MemoryMgmtTest::test_readdata_refcounting + tests/memory_mgmt_test.py::MemoryMgmtTest::test_writedata_refcounting + tests/memory_mgmt_test.py::MemoryMgmtTest::test_writeheader_refcounting + ) + + epytest -p flaky tests +} + +python_install_all() { + local HTML_DOCS=( doc/. ) + use examples && dodoc -r examples + distutils-r1_python_install_all +} -- cgit v1.2.3