diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-22 18:25:38 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-22 18:25:38 +0000 |
| commit | 9ea2dbbe31826c9efce9bb1e2e1c376dad8fbcb8 (patch) | |
| tree | 7e1049830ad88548ec622b869abde044258e5f46 /dev-python/msgpack | |
| parent | 4c6efbbf83279da57674e1da55d38d2f5a30c45e (diff) | |
| download | baldeagleos-repo-9ea2dbbe31826c9efce9bb1e2e1c376dad8fbcb8.tar.gz baldeagleos-repo-9ea2dbbe31826c9efce9bb1e2e1c376dad8fbcb8.tar.xz baldeagleos-repo-9ea2dbbe31826c9efce9bb1e2e1c376dad8fbcb8.zip | |
Adding metadata
Diffstat (limited to 'dev-python/msgpack')
| -rw-r--r-- | dev-python/msgpack/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/msgpack/msgpack-1.0.6.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/msgpack/Manifest b/dev-python/msgpack/Manifest index 4fd6e7b1b3e9..69bc323eaf19 100644 --- a/dev-python/msgpack/Manifest +++ b/dev-python/msgpack/Manifest @@ -1 +1,2 @@ DIST msgpack-1.0.5.tar.gz 127834 BLAKE2B 3dcf454630021e35d5c6d5ce850d7ac74a6d11d6fe7c7ed07040daa62585bd6b11dc0f68a5b4c4bf20346c25bc23017f79f2d1bad09f175008b184461d0eea5d SHA512 bc3bf27ca7a9204c5ebc009e4a03db4fb48f6c2733bef393aed16652f07ac92c9400258818743245598343c86494d39b39017ab70d7563a5844091eca11a9faa +DIST msgpack-1.0.6.tar.gz 166462 BLAKE2B 19cbef99c44b6509b829462b54cea6c6bc47a30714e5f89b8f08329f2b1b46f4dea7bab4e1c32c4b9cdee44ab10d5223f3c3cc8df52c67d5f98a917dbbc3dd99 SHA512 dde756a1f3d390067a065b12c7e2c3b94aab9378d9d41e3b5338bc2e4e809b234b390618dddd6ccff13403ac03750d7c44fa567c8f87c23350e62d4d469d9707 diff --git a/dev-python/msgpack/msgpack-1.0.6.ebuild b/dev-python/msgpack/msgpack-1.0.6.ebuild new file mode 100644 index 000000000000..46f5704f68a6 --- /dev/null +++ b/dev-python/msgpack/msgpack-1.0.6.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="MessagePack (de)serializer for Python" +HOMEPAGE=" + https://msgpack.org/ + https://github.com/msgpack/msgpack-python/ + https://pypi.org/project/msgpack/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="+native-extensions" + +# extension code is relying on CPython implementation details +BDEPEND=" + native-extensions? ( + $(python_gen_cond_dep ' + >=dev-python/cython-3.0.0[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Remove pre-generated cython files + rm msgpack/_cmsgpack.cpp || die + + # native-extensions are always disabled on PyPy + # https://github.com/msgpack/msgpack-python/blob/main/setup.py#L76 + if ! use native-extensions ; then + export MSGPACK_PUREPYTHON=1 + fi + + distutils-r1_python_prepare_all +} + +python_test() { + rm -rf msgpack || die + epytest +} |
