diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-11 07:02:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-11 07:02:28 +0100 |
commit | 068424b26532f3551a81421a9be67ed206e5c11a (patch) | |
tree | 583b8d979899a463a4ef5b26d3d49e85df987623 /dev-python/rencode | |
parent | d162ba1860a88062f4cd61f8b52fc303ba0b2991 (diff) |
gentoo resync : 11.08.2021
Diffstat (limited to 'dev-python/rencode')
-rw-r--r-- | dev-python/rencode/Manifest | 2 | ||||
-rw-r--r-- | dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch | 17 | ||||
-rw-r--r-- | dev-python/rencode/rencode-1.0.6-r1.ebuild | 33 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/rencode/Manifest b/dev-python/rencode/Manifest index 49117d9696ed..6258337f7eda 100644 --- a/dev-python/rencode/Manifest +++ b/dev-python/rencode/Manifest @@ -1,3 +1,5 @@ +AUX rencode-1.0.6-drop-wheel-dependency.patch 493 BLAKE2B 368e3b618490538adee98c42e574c2130ca57c43d6502d35d9c35a72a3a0d20077d48098ac91fb53f39a32f601c594aa355657fde25502f1beb1450cb08f0654 SHA512 254cd71919906f24842e921ce6d4a8cfe4960b2b048a25c6eb170d8ff1dcde0b758d429a7bcdca971379a0b5706e278111ae1f43b64c4251d3dee87d9c6df063 DIST rencode-1.0.6.tar.gz 25455 BLAKE2B def013a569a53e2b2d96b3430c13676810bc5879e565f091dbc44f1ae950b8ec7ca0fa5e35a974432fd71a1bcca5a3f1f18bb2a9f042480167ab50e4f0aba8c3 SHA512 f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f +EBUILD rencode-1.0.6-r1.ebuild 919 BLAKE2B aa6245c1ac5449d68407863eec062e3f3ecd9b442be47765f63461df172f635d7345535c569f8c34ab4897646efcf1bab7e2c14f8602ca1d11ede07b08c8cd9c SHA512 f99d7c943a033981a6e166931e1ca1d199de647b0f2f241518219d0a2bc766bcad2333868d08c8ae67d51fbcac602c76800fd233e99202fa6a4f6d76af260a77 EBUILD rencode-1.0.6.ebuild 550 BLAKE2B a758e02c534663464a4d8ba52059904d134f61e9194a9bdd4493c55eb92b3a2d9525807e5242d34811c76e7a3e86619e39d343c34e25637caa48388c9e9c9396 SHA512 0ff395a1b4365b6db91525c4263bdf7b26d63a1094c800ed434463e3a03d2db0ae6e96ef65274bd4fe4d615f828ce73b855aa212e54518ee18c596f8b360b954 MISC metadata.xml 711 BLAKE2B 99d00b59865b5d2994f472e347afb5cf8a4bfc1333c9eea5ce76d45f6ae2ee246c376bf2a7b0dbafa7f8b9e14ffb4cd062ea1c3e6bf300061b6bb13c212aa09b SHA512 55138e8f053487e2d4fc904ac544f9fa2058ed3fb2ab3238d36612c6741f667a812460d613c474a287eb871cbc8ba76b521838ca1d030a088761e5c73dc65511 diff --git a/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch b/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch new file mode 100644 index 000000000000..1a7e0ea2b87a --- /dev/null +++ b/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch @@ -0,0 +1,17 @@ +commit 3019171614f22c3d489d46e0fb22c07bf393830f +Author: Louis Sautier <sautier.louis@gmail.com> +Date: Sun Aug 8 22:51:53 2021 +0200 + + Remove unnecessary wheel dependency + +diff --git a/setup.py b/setup.py +index 023df09..6445c0a 100644 +--- a/setup.py ++++ b/setup.py +@@ -92,5 +92,5 @@ setup( + url="https://github.com/aresch/rencode", + cmdclass={'build_ext': optional_build_ext}, + ext_modules=ext_modules, +- setup_requires=['setuptools', 'wheel'], ++ setup_requires=['setuptools'], + ) diff --git a/dev-python/rencode/rencode-1.0.6-r1.ebuild b/dev-python/rencode/rencode-1.0.6-r1.ebuild new file mode 100644 index 000000000000..f02c970bbcdc --- /dev/null +++ b/dev-python/rencode/rencode-1.0.6-r1.ebuild @@ -0,0 +1,33 @@ +# 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="similar to bencode from the BitTorrent project" +HOMEPAGE="https://github.com/aresch/rencode" +SRC_URI="https://github.com/aresch/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" + +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/aresch/rencode/commit/16e61e1ff4294bddb7c881536d3d454355c78969 + "${FILESDIR}/${P}-drop-wheel-dependency.patch" +) + +python_test() { + # The C extension ("_rencode") can't be imported from "${S}/rencode" + # so we need to cd somewhere else to make sure "rencode" is imported + # from ${BUILD_DIR}/lib (thanks to PYTHONPATH). + cd "${T}" || die + epytest "${S}" +} |