diff --git a/dev-python/curio/Manifest b/dev-python/curio/Manifest index 22a96141fd..3cd73a65ae 100644 --- a/dev-python/curio/Manifest +++ b/dev-python/curio/Manifest @@ -1,3 +1,4 @@ DIST curio-0.9.tar.gz 482459 BLAKE2B 7ef65d22806eb10ee3e757dc0d63a202c13036cdb1995962e193332c50dd73585ab27449614de5995f874c03d8623ea27f967101aa99b15166d19a48f4cdaaea SHA512 a6ae4db76358536e6e299ecfa923fd63746cba4bc5374fbfdeb4127032552c960d1e199fdf17d95b039ca2bd000325c637f663007cd6850313bc00bc9a2a3d68 DIST curio-1.2.tar.gz 228413 BLAKE2B 57dd4849a33ce8075b1f5409397abc727bb10b40d185864747d2e208b5d850286f9dc8784451d1ee8af4f28fcdb8b98d5a159a7563ae93fd30419e8938887ca3 SHA512 8a155f3d0c5512184ed4019edf5f33bfe7597ffdef1a6b19d82b42fe0317b80006d57658d69b422a320f49f9f1b6294faba6c042b7c4258538f001a9792acb8a DIST curio-1.4.tar.gz 230144 BLAKE2B befe36251e6e9ef39cc220d383d9195e7ed4126aafe64403598b857551fe54ef6fff293e9ddb802dc155c9c6264d9f7b86e7393786b7bd1da4ca8882716a5d77 SHA512 105fe0d3edea0310b98bb93e74ca750516d9f33e4f8c3866be3e92a582485baf885fd58b007fb33c3e24b4a8e73b532f20899ed106c4a6ac23f97b444c4b3ffc +DIST curio-1.5.tar.gz 234920 BLAKE2B 26e3c0de872d77478f433990f88f9ac35f9615621aadfcc7b8d766488ffe390fd4698854640792bda4e649fc0d1224fa7cb5bf89777268fee4349500a5365547 SHA512 8c78d866b949da862ddb29d6a8db6881d00dedb33637529d02d4e3010de0e1ecd15e74f52c011828738ac7d54e5f04425c8ffb43abaf1e77c21d28d874ff711b diff --git a/dev-python/curio/curio-1.5.ebuild b/dev-python/curio/curio-1.5.ebuild new file mode 100644 index 0000000000..47c09e071f --- /dev/null +++ b/dev-python/curio/curio-1.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend + +inherit distutils-r1 + +DESCRIPTION="Curio is a coroutine-based library for concurrent systems programming" +HOMEPAGE=" + https://github.com/dabeaz/curio + https://pypi.org/project/curio +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +IUSE="examples" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +DEPEND="test? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +distutils_enable_sphinx docs --no-autodoc +distutils_enable_tests pytest + +python_prepare_all() { + # requires internet connection + sed -i -e 's:test_ssl_outgoing:_&:' \ + tests/test_network.py || die + + # AttributeError: module 'asyncio' has no attribute 'run' + sed -i -e 's:test_uqueue_asyncio_consumer:_&:' \ + tests/test_queue.py || die + sed -i -e 's:test_uevent_get_asyncio_set:_&:' \ + -e 's:test_uevent_get_asyncio_wait:_&:' \ + -e 's:test_universal_error:_&:' \ + -e 's:test_universal_value:_&:' \ + tests/test_sync.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +}