diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-25 19:01:35 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-25 19:01:35 +0000 |
| commit | 4edba0f7c9252e45fae8ba33f768fd5fb1f9f7fa (patch) | |
| tree | a8831bf0634070533a0b189df4c15c58a39418ff /dev-python | |
| parent | 7905b85a5dde08d4760319aa85fa4fa8954e8548 (diff) | |
| download | baldeagleos-repo-4edba0f7c9252e45fae8ba33f768fd5fb1f9f7fa.tar.gz baldeagleos-repo-4edba0f7c9252e45fae8ba33f768fd5fb1f9f7fa.tar.xz baldeagleos-repo-4edba0f7c9252e45fae8ba33f768fd5fb1f9f7fa.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/apsw/apsw-3.49.1.0-r1.ebuild | 53 | ||||
| -rw-r--r-- | dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch | 20 | ||||
| -rw-r--r-- | dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild | 4 | ||||
| -rw-r--r-- | dev-python/twisted/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/twisted/metadata.xml | 1 | ||||
| -rw-r--r-- | dev-python/twisted/twisted-25.5.0_rc1.ebuild | 162 | ||||
| -rw-r--r-- | dev-python/yara-python/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/yara-python/yara-python-4.5.3.ebuild (renamed from dev-python/yara-python/yara-python-4.5.1.ebuild) | 4 |
8 files changed, 244 insertions, 3 deletions
diff --git a/dev-python/apsw/apsw-3.49.1.0-r1.ebuild b/dev-python/apsw/apsw-3.49.1.0-r1.ebuild new file mode 100644 index 000000000000..73657f2fbf98 --- /dev/null +++ b/dev-python/apsw/apsw-3.49.1.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 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_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="APSW - Another Python SQLite Wrapper" +HOMEPAGE=" + https://github.com/rogerbinns/apsw/ + https://pypi.org/project/apsw/ +" +SRC_URI=" + https://github.com/rogerbinns/apsw/releases/download/${PV}/${P}.zip +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="doc" + +DEPEND=" + >=dev-db/sqlite-${PV%.*}:3 +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + app-arch/unzip +" + +src_configure() { + cat >> setup.apsw <<-EOF || die + [build_ext] + use_system_sqlite_config=True + EOF +} + +python_test() { + esetup.py build_test_extension + cd "${T}" || die + "${EPYTHON}" -m apsw.tests -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + doman man/apsw.1 + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch new file mode 100644 index 000000000000..e4f5dae95701 --- /dev/null +++ b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/955533 +https://github.com/mcfletch/pyopengl/issues/147 +https://github.com/mcfletch/pyopengl/pull/146 + +From 69e8ced15eb63c3f00293f59cef50d5fad02d884 Mon Sep 17 00:00:00 2001 +From: Vsevolod Misiul <vsevolod.misul@innowise.com> +Date: Mon, 19 May 2025 14:46:00 +0300 +Subject: [PATCH] For linux on arm64 the long type is not defined, so grab it + from ctypes.c_long + +--- a/src/vbo.pyx ++++ b/src/vbo.pyx +@@ -1,6 +1,7 @@ + """Cython-coded VBO implementation""" + #cython: language_level=3 + import ctypes, weakref ++from ctypes import c_long as long + from OpenGL_accelerate.formathandler cimport FormatHandler + from OpenGL import error + from OpenGL._bytes import bytes,unicode diff --git a/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild index b66cec23e6f4..a3ed4084c3ec 100644 --- a/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild +++ b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild @@ -36,6 +36,10 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}"/pyopengl-accelerate-3.1.9-cpython3.1.0.patch +) + src_configure() { if ! use numpy; then cat > "${T}"/numpy.py <<-EOF || die diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest index 9385862cabcd..623b687189b4 100644 --- a/dev-python/twisted/Manifest +++ b/dev-python/twisted/Manifest @@ -1,3 +1,4 @@ DIST twisted-24.10.0.tar.gz 3525999 BLAKE2B 4d274a4b5989597c2789e05774bad3595ac5284f5da25fb488d46b87a4bb0e0ab311fcab228eaf070530451a28098bbefc326f6d4806378b2fe076adf5b07199 SHA512 dad7c1301c3b31f096db8c4796e064e864c2c28107c46c202b4f4b123c99a0e69f9b43afbf582997dd2c15a08e95b41213e4bc67ea1fe9fd8137c76656a20162 DIST twisted-24.11.0.tar.gz 3526722 BLAKE2B cd874da038e3cbc369283de5d598b99680e3122ed9bdd0bbb8e541793b739b88281708c618c8f0cf9b4bf13684188b0b893ec5f744ae510c1af446822652a866 SHA512 cfd17cad9573b47b43761625ab529a1a0b27ce75545d9bc277622a7ce138b5dccf554d3c8764de1baafc07192e1172e50f4c6d19dc65590b5318a603a808efb9 +DIST twisted-25.5.0rc1.tar.gz 3546085 BLAKE2B adf18b8755d431ea47fa07ec6cbf32e6400ae928e3246782035785856b843e0e31bca448441ad2b280cbc874708ae521c39d0194b32fd6aa45ce3ce5fe977c64 SHA512 e67e1a1c19a49cfcd9179e2b981539dac87e19b46b630de41542fc3d34efa508ee624b6640b5a3186450251ee1a610dced5ab093b025607c0e61bfa843eb4b68 DIST twisted-regen-cache.gz 911 BLAKE2B ffd3fcda6c67ffe6fd3ef581c8d507548396b66ed0708e9a5c790095e579c0d5f0f71596acf05712989da2ddef2b8d437eca973bc4d80ef8a9fa852915f38305 SHA512 95a9b931c73017d16d1b5e6b41345dddffe62b6af1a8e93b5e40d06d3d15be17b0dd0181c767ffeeb791534d463764ef9e066fa6c2ee2ac4b53c86d1da8fce03 diff --git a/dev-python/twisted/metadata.xml b/dev-python/twisted/metadata.xml index 5adaff6ee946..7df050100349 100644 --- a/dev-python/twisted/metadata.xml +++ b/dev-python/twisted/metadata.xml @@ -23,6 +23,7 @@ twisted.trial: A unit testing framework that integrates well with Twisted-based <use> <flag name="conch">include Twisted SSHv2 implementation</flag> <flag name="serial">include serial port support</flag> + <flag name="websockets">include websocket support</flag> </use> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/twisted/twisted-25.5.0_rc1.ebuild b/dev-python/twisted/twisted-25.5.0_rc1.ebuild new file mode 100644 index 000000000000..fe772f6a85a3 --- /dev/null +++ b/dev-python/twisted/twisted-25.5.0_rc1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_TESTED=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 multiprocessing pypi virtualx + +DESCRIPTION="An asynchronous networking framework written in Python" +HOMEPAGE=" + https://twisted.org/ + https://github.com/twisted/twisted/ + https://pypi.org/project/Twisted/ +" +SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz +" + +LICENSE="MIT" +SLOT="0" +IUSE="conch http2 serial ssl test websockets" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/automat-24.8.0[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1[${PYTHON_USEDEP}] + >=dev-python/hyperlink-17.1.1[${PYTHON_USEDEP}] + >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.2.0[${PYTHON_USEDEP}] + >=dev-python/zope-interface-5[${PYTHON_USEDEP}] + conch? ( + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.0.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-3.3[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + ) + http2? ( + >=dev-python/h2-3.2[${PYTHON_USEDEP}] + >=dev-python/priority-1.1.0[${PYTHON_USEDEP}] + ) + serial? ( + >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] + ) + ssl? ( + >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] + >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] + >=dev-python/idna-2.4[${PYTHON_USEDEP}] + ) + websockets? ( + dev-python/wsproto[${PYTHON_USEDEP}] + ) +" +IDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1[${PYTHON_USEDEP}] + >=dev-python/zope-interface-5[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.0.0[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] + <dev-python/cython-test-exception-raiser-2[${PYTHON_USEDEP}] + >=dev-python/cython-test-exception-raiser-1.0.2[${PYTHON_USEDEP}] + >=dev-python/idna-2.4[${PYTHON_USEDEP}] + >=dev-python/httpx-0.27[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.56[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + >=dev-python/pyhamcrest-2[${PYTHON_USEDEP}] + >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] + dev-python/wsproto[${PYTHON_USEDEP}] + virtual/openssh + ssl? ( + >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] + >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] + ) + ' "${PYTHON_TESTED[@]}") + ) +" + +python_prepare_all() { + # upstream test for making releases; not very useful and requires + # sphinx (including on py2) + rm src/twisted/python/test/test_release.py || die + + # multicast tests fail within network-sandbox + sed -e 's:test_joinLeave:_&:' \ + -e 's:test_loopback:_&:' \ + -e 's:test_multiListen:_&:' \ + -e 's:test_multicast:_&:' \ + -i src/twisted/test/test_udp.py || die + + distutils-r1_python_prepare_all +} + +src_test() { + # the test suite handles missing file & failing ioctl()s gracefully + # but not permission errors from sandbox + addwrite /dev/net/tun + virtx distutils-r1_src_test +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON} (xfail)" + return + fi + + # breaks some tests by overriding empty environment + local -x SANDBOX_ON=0 + # for py3.13, see + # https://github.com/twisted/twisted/pull/12092#issuecomment-2194326096 + local -x LINES=25 COLUMNS=80 + "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" twisted || + die "Tests failed with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # own the dropin.cache so we don't leave orphans + > "${D}$(python_get_sitedir)"/twisted/plugins/dropin.cache || die + + python_doscript "${WORKDIR}"/twisted-regen-cache +} + +python_install_all() { + distutils-r1_python_install_all + + newconfd "${FILESDIR}/twistd.conf" twistd + newinitd "${FILESDIR}/twistd.init" twistd +} + +python_postinst() { + twisted-regen-cache || die +} + +pkg_postinst() { + if [[ -z ${ROOT} ]]; then + python_foreach_impl python_postinst + fi +} + +python_postrm() { + rm -f "${ROOT}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die +} + +pkg_postrm() { + # if we're removing the last version, remove the cache file + if [[ ! ${REPLACING_VERSIONS} ]]; then + python_foreach_impl python_postrm + fi +} diff --git a/dev-python/yara-python/Manifest b/dev-python/yara-python/Manifest index f97ec5766a46..a3a35a4a7f60 100644 --- a/dev-python/yara-python/Manifest +++ b/dev-python/yara-python/Manifest @@ -1,2 +1,2 @@ -DIST yara-python-4.5.1.gh.tar.gz 39419 BLAKE2B e89677bd8b857e9c7b40b172311245ab7cc2149bfec6de09905494645d65abd67b1a41978101795ddb9dcb9d4344c3a4ffc23c96291580f17f59cdabe66a1d59 SHA512 fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a DIST yara-python-4.5.2.gh.tar.gz 39258 BLAKE2B db9038d476654916eb66d72c6e45b93faf61e8e2621b2a6d862620d100a5d5f7b292e586e68c77cf8a76ce728fcf976690bfd468f027a77f28519298dc3a668a SHA512 586f22d50db01b21e47a8b76e069a917018cc86f8931f438c5066b38323f7a477a919d9e10e704e74f2962ae02bb1715834c704dfe16b66311f48f06c0c5165a +DIST yara-python-4.5.3.gh.tar.gz 39315 BLAKE2B 11dfcca60ff4d366ee05a6228921e7733e7bd63111cbea0c6a947e2ef3760fe4854758a3492c7652543f70597c20151429af03ee5c98a9f86d2fe505fb677a26 SHA512 f7e6860c479e70efe5f56b2fea4f2b5d4878ec6a19778e59465f9983c7af493215925d753218fce1fd0e906634582bf5c67095e398864f706d36bbe4a43a5537 diff --git a/dev-python/yara-python/yara-python-4.5.1.ebuild b/dev-python/yara-python/yara-python-4.5.3.ebuild index 4e69474b0c44..abe42fd90f95 100644 --- a/dev-python/yara-python/yara-python-4.5.1.ebuild +++ b/dev-python/yara-python/yara-python-4.5.3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="https://github.com/VirusTotal/yara-python.git" else SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" - KEYWORDS="amd64 ~arm64 ~ppc64 x86" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" fi LICENSE="Apache-2.0" @@ -36,5 +36,5 @@ python_configure_all() { } python_test() { - "${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}" + "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}" } |
