Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/msgpack/
Date: Thu, 25 Nov 2021 08:11:51
Message-Id: 1637827902.e200316384bb1e856c769007916929fa5cf57a09.mgorny@gentoo
1 commit: e200316384bb1e856c769007916929fa5cf57a09
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 25 08:00:02 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 25 08:11:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2003163
7
8 dev-python/msgpack: Bump to 1.0.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/msgpack/Manifest | 1 +
13 dev-python/msgpack/msgpack-1.0.3.ebuild | 38 +++++++++++++++++++++++++++++++++
14 2 files changed, 39 insertions(+)
15
16 diff --git a/dev-python/msgpack/Manifest b/dev-python/msgpack/Manifest
17 index 31a965d94ab9..ec34bd494c9d 100644
18 --- a/dev-python/msgpack/Manifest
19 +++ b/dev-python/msgpack/Manifest
20 @@ -1,2 +1,3 @@
21 DIST msgpack-0.6.2.tar.gz 119062 BLAKE2B 6b20a0d31b811ae66e66dbfaacec6f0cf2152b2937423b78f3e6244bfa49c87767788c5ee1db41b9020801b8777a4c15b1fe1853182718adf622bc7e1bff858e SHA512 95b92e3d35e0500dd4256d18bf76e586e57cc66319b4459ac5daef599277a5049177a89ad86e291dbdc4c7a918901a89d9218353ddc4a7d0b399e8a98afef363
22 DIST msgpack-1.0.2.tar.gz 123033 BLAKE2B 8ecf743f5cae536bde9328974827e48376fdfbcaf4d3493fe295a114fd0de4c7dc2629d67a0abf6ece036131715587d2eeaefde0ea9614779a64015ea7fc2be8 SHA512 afe658c2cd5b443aae8fc3305eb3fd56811130062f95e283e3538cba27949d534de60171a927426fedb23b48a938de3f15d77057beda6c73e5204ef1130cd046
23 +DIST msgpack-1.0.3.tar.gz 123830 BLAKE2B 308af03206fef18edb0acd3c1d91ccd28385731c02cb930e8f64786bbcd8925510cf4ca0b924830b84fd6eaa7edf91e6a43f79c77d856651768eeaa1ab8cf855 SHA512 1569e42c6499c60458a63aa722b5c7e3dc817e38ae4bed2dc8199dc1bcbc36ff876e055b046b4f6063b5606036ae9238080c05be1e09a61a34e7f97fd5031fcd
24
25 diff --git a/dev-python/msgpack/msgpack-1.0.3.ebuild b/dev-python/msgpack/msgpack-1.0.3.ebuild
26 new file mode 100644
27 index 000000000000..cf8b14db676e
28 --- /dev/null
29 +++ b/dev-python/msgpack/msgpack-1.0.3.ebuild
30 @@ -0,0 +1,38 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="MessagePack (de)serializer for Python"
40 +HOMEPAGE="https://msgpack.org
41 + https://github.com/msgpack/msgpack-python/
42 + https://pypi.org/project/msgpack/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~x64-macos"
48 +IUSE="+native-extensions"
49 +
50 +# extension code is relying on CPython implementation details
51 +BDEPEND="
52 + native-extensions? (
53 + $(python_gen_cond_dep '>=dev-python/cython-0.16[${PYTHON_USEDEP}]' 'python*')
54 + )
55 + test? ( dev-python/six[${PYTHON_USEDEP}] )
56 +"
57 +
58 +distutils_enable_tests pytest
59 +
60 +python_prepare_all() {
61 + # Remove pre-generated cython files
62 + rm msgpack/_cmsgpack.cpp || die
63 +
64 + if ! use native-extensions ; then
65 + sed -i -e "/have_cython/s:True:False:" setup.py || die
66 + fi
67 + distutils-r1_python_prepare_all
68 +}