diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-11 02:01:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-11 02:01:11 +0000 |
commit | 494ca58c9f5243dd4b56557aa8c41bce76e95ec3 (patch) | |
tree | b699beb74ae3071c865d4f2e95ed7f376f99214a /dev-python/python-box | |
parent | 59437d191de3ff33f9bfa37f8656d849184fcaf0 (diff) |
gentoo auto-resync : 11:12:2024 - 02:01:11
Diffstat (limited to 'dev-python/python-box')
-rw-r--r-- | dev-python/python-box/Manifest | 2 | ||||
-rw-r--r-- | dev-python/python-box/python-box-7.3.0.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/python-box/Manifest b/dev-python/python-box/Manifest index 57b45c924516..c9554fcd654a 100644 --- a/dev-python/python-box/Manifest +++ b/dev-python/python-box/Manifest @@ -1,3 +1,5 @@ DIST Box-7.2.0.gh.tar.gz 87699 BLAKE2B d6f033919e5451adfdcb0c14c28a47e25b619eb531280a39b68912179ad3a21638d4fadd6dbee2b09bc445b1adc2dd31e042d1e816dc5fc36098ea5eadab8a30 SHA512 8f2ec95a0539c8000d08353eccd66dd9de4049408b0cef9095f3bf98486424214e1d47ef5c408e425c5c2958652624efa512701138d91d51356f07795c508b9f +DIST Box-7.3.0.gh.tar.gz 87791 BLAKE2B eba82f4fa083f2f7725547254143d86d034d1dbf0ad540eb4cef8eb387846053a44a7b7dc6b94878a124f98336cade4c6a64c89beb779e5db6008393b721ecc9 SHA512 9425dc339abac6649f9e78b279720ce191559e1629eb4451fc1a63495df1d5c64bf20a339407bbfc6f8e64d9def4accf312087958880a5300c83369ee9d6ceb4 EBUILD python-box-7.2.0.ebuild 1121 BLAKE2B 1732e445b76fb23aa9a1b022385d4d6088d1603c6015fadba226d62f718016b93f755aea127edfdf44d34867cdf05febea9dacb537baf810bc6c87512a4eea43 SHA512 12afcd3bcde9fa28efd1c83f27c1f79b463287c997e8f3db49c478ae3b795dd773162f8c779a301f385e7782deb2546153428bdf45db26e45af1dc5acb765a26 +EBUILD python-box-7.3.0.ebuild 1122 BLAKE2B f58c059d36b76842afd0c30ef6751912c4f17edf24faaab2f07368a7c4ec7cc4a77106f5bcf816fc524286aed2a5a2ef3804278934b6a7105c7317a7b330c323 SHA512 395433f4fd8e8431febfda3306062da9778fd74690d276c41cb46a0e3165309f340cdac9ce02e024181dc63ee56b57bf99d37873d9b54d49a1452fca772aef8a MISC metadata.xml 455 BLAKE2B c87617c0445d56b0b2615ee0727bd18202ff2aacab347e0ddd6e26c2c4a7ea2ec484a01227c7a5a7deec870aae3475422ab4940b15b08401209936d004866c26 SHA512 3d4f528845543f82e21bd97cd4eeea8e52da76634832640a430fe1764f56442a9e909cf14a0426eb64ac64c77a93d619c03731678d0beeb758720261a374b45d diff --git a/dev-python/python-box/python-box-7.3.0.ebuild b/dev-python/python-box/python-box-7.3.0.ebuild new file mode 100644 index 000000000000..2fc0ece6b850 --- /dev/null +++ b/dev-python/python-box/python-box-7.3.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 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_{10..13} ) + +inherit distutils-r1 + +MY_P=Box-${PV} +DESCRIPTION="Python dictionaries with advanced dot notation access" +HOMEPAGE=" + https://github.com/cdgriffith/Box/ + https://pypi.org/project/python-box/ +" +SRC_URI=" + https://github.com/cdgriffith/Box/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+native-extensions" + +RDEPEND=" + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.8 3.9 3.10) + dev-python/tomli-w[${PYTHON_USEDEP}] +" +BDEPEND=" + native-extensions? ( + dev-python/cython[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + if ! use native-extensions; then + # a cheap hack, extensions are auto-disabled if Cython.Build + # is not importable + > Cython.py || die + fi + + distutils-r1_src_prepare +} + +python_test() { + rm -rf box || die + epytest +} |