diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-18 18:36:34 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-09-18 18:36:34 +0000 |
| commit | f661792935a66291d89e9bdf001fb8fc7a9ed815 (patch) | |
| tree | 4a72074be7171ddb44227210d4783a936911dda8 /dev-python | |
| parent | 8186801834f408cadc46c6a3c0de44faf8bc1cb0 (diff) | |
| download | baldeagleos-repo-f661792935a66291d89e9bdf001fb8fc7a9ed815.tar.gz baldeagleos-repo-f661792935a66291d89e9bdf001fb8fc7a9ed815.tar.xz baldeagleos-repo-f661792935a66291d89e9bdf001fb8fc7a9ed815.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
35 files changed, 556 insertions, 100 deletions
diff --git a/dev-python/cassowary/cassowary-0.6.ebuild b/dev-python/cassowary/cassowary-0.6.ebuild index 57a2de67e05d..b617fbf7c12b 100644 --- a/dev-python/cassowary/cassowary-0.6.ebuild +++ b/dev-python/cassowary/cassowary-0.6.ebuild @@ -14,6 +14,11 @@ KEYWORDS="~amd64" DESCRIPTION="Run Windows Applications on Linux as if they are native (Using a VM and FreeRDP)" HOMEPAGE="https://github.com/casualsnek/cassowary" +BDEPEND="dev-python/setuptools + dev-python/build + dev-python/installer +" + RDEPEND="net-misc/freerdp dev-python/libvirt-python dev-python/PyQt5 @@ -29,7 +34,7 @@ MODULES_KERNEL_MIN=5.10 python_compile() { cd "${S}/app-linux" || die - echo "See documenation of cassowary" > README.md || die # Dummy Readme file (solve qa error) + echo "See documenation of cassowary" >README.md || die # Dummy Readme file (solve qa error) sed -i "s/version = 0.5/version = ${PV}/g" setup.cfg || die #version typo upstream ${EPYTHON} -m build --wheel --no-isolation } diff --git a/dev-python/filebytes/filebytes-9999.ebuild b/dev-python/filebytes/filebytes-9999.ebuild index 426d408790e9..f4c4868c2cd0 100644 --- a/dev-python/filebytes/filebytes-9999.ebuild +++ b/dev-python/filebytes/filebytes-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/hidapi/metadata.xml b/dev-python/hidapi/metadata.xml index bec8ef671e0c..83d00b14c8d4 100644 --- a/dev-python/hidapi/metadata.xml +++ b/dev-python/hidapi/metadata.xml @@ -1,10 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>sultan@gentoo.org</email> - <name>Stephan Hartmann</name> - </maintainer> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/icalendar/Manifest b/dev-python/icalendar/Manifest index 65e1d7749d4a..9e152ba6f2b4 100644 --- a/dev-python/icalendar/Manifest +++ b/dev-python/icalendar/Manifest @@ -1 +1,2 @@ DIST icalendar-5.0.7.tar.gz 104099 BLAKE2B df45ee6b8c1ad5bfc558195e86e2456aae8f70613724ba16e74093e5454695d8d4ef2e0eb2e312dd2a94c3a12bc6e4febc21174e8380e249f2de906500a1cfc8 SHA512 c541e61d79b76123d119e51ee6d927795a7d675aded427a21bd38d0f069ea454e182a61ff86b96c7769c42560dfc20f7facb00dfe8a9cfa47da74b279d841b42 +DIST icalendar-5.0.8.tar.gz 106954 BLAKE2B 2e6d9cbae1a8feba40c33403e047386dcb8846fb7d8fd9e6b78d2b58ffeb4fb033438f240dd3fa3290f5edeb171a940dc2213cd5d758f59908eea1099807f52d SHA512 275884cf934d8a275dc75346b0518701f2160c43d479e91069f3cad4370b14d9cbc78bf0c1fea287df2da271ec2f71137cfd5ec202d8304df16cf474f7008b53 diff --git a/dev-python/icalendar/icalendar-5.0.8.ebuild b/dev-python/icalendar/icalendar-5.0.8.ebuild new file mode 100644 index 000000000000..cdce7b0af548 --- /dev/null +++ b/dev-python/icalendar/icalendar-5.0.8.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Package used for parsing and generating iCalendar files (RFC 2445)" +HOMEPAGE=" + https://github.com/collective/icalendar/ + https://pypi.org/project/icalendar/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_prepare_all() { + # reset conf.py to not read version from an installed instance + sed -e "s:pkg_resources.get_distribution('icalendar').version:'${PV}':" \ + -i docs/conf.py || die + distutils-r1_python_prepare_all +} diff --git a/dev-python/jplephem/Manifest b/dev-python/jplephem/Manifest index 0f76fcdb4f2d..befc99117ae5 100644 --- a/dev-python/jplephem/Manifest +++ b/dev-python/jplephem/Manifest @@ -1 +1,2 @@ DIST jplephem-2.18.tar.gz 40886 BLAKE2B c6beb3cb2aec7d82023a253f9b5bafd989fbc7631b1b727322bf8f092509eeb25c6921d550c7bb5862be74d493a19ca29b3835f9a18efbd44509d4776ca660f6 SHA512 8f3117445f33de25d1f1eb5b5cfa0f67d92e62e7ac8d7a32f92690d12533ef8cd5498a62b5ee9cb7dac6f43c944879bbf10aa73950a749caa02d814f81b37fbf +DIST jplephem-2.19.tar.gz 43698 BLAKE2B 7313b14c64e0a2f2263fe4b2233e3113bb85f335f9d84ea13668b2a6f52b3b5c3a98d0b0d97ffc3ceb70b4569d9c2f547a5e03718eed69ddc0bc6a0be23f150f SHA512 f6595db4039029fe0af2c2901c635cde298d9480c29d4768ef8275833735b7363bf6312a4fd3afc135ecbc9e9cf32b6b1e2766405456a44f7a9ed584d9f7ae82 diff --git a/dev-python/jplephem/jplephem-2.19.ebuild b/dev-python/jplephem/jplephem-2.19.ebuild new file mode 100644 index 000000000000..9767fcb73b5d --- /dev/null +++ b/dev-python/jplephem/jplephem-2.19.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python version of NASA DE4xx ephemerides for Astronomical Alamanac" +HOMEPAGE="https://pypi.org/project/jplephem/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..e9da2ac43cac 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1 +1,3 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db +EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 +MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index ddb5b0f1787e..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,9 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>cyber+gentoo@sysrq.in</email> - <name>Anna</name> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> </maintainer> - - <origin>gentoo-guru-overlay</origin> + <upstream> + <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> + </upstream> + <origin>slonko-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/leechcorepyc/Manifest b/dev-python/leechcorepyc/Manifest index fdecfbba4520..12bc0962ad5c 100644 --- a/dev-python/leechcorepyc/Manifest +++ b/dev-python/leechcorepyc/Manifest @@ -1 +1,2 @@ DIST leechcorepyc-2.14.3.tar.gz 126511 BLAKE2B a15b593144685d1f44dc1b580c8146f57d6c784e39d2a4aad8b4221ea718ee79dffe24877ac74198a2f8baeaca30a37d3fe1e6680265b94bcc30dc7117002706 SHA512 06c4c66cc92c2c55e2dd2e57e5488a1864dc21a1667b4b39237372e95fcd6b99b569754a44eea7afdae32207245016b096939c0edf11a4133fc24a343c892ba8 +DIST leechcorepyc-2.15.0.tar.gz 176764 BLAKE2B d0e4aa14d0cc1ce1ad3c14e704949c3b872b0889449ca81c9ac8642340b301ce52baf638ce58a6c3d1262f0cfe5cc5ec8eb26f80d01d87933c33a0f87ac46338 SHA512 d1d5f775d4166b510dd110dfe3e28179464170682d3092e7887fd7464fef21c2e2d1bb6d2294eb8ab45cb2566df15f0bf3254d098afd8bcb6b36186517496bd2 diff --git a/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild b/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild new file mode 100644 index 000000000000..52ab330e9491 --- /dev/null +++ b/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild @@ -0,0 +1,41 @@ +# 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} ) + +inherit distutils-r1 toolchain-funcs pypi + +DESCRIPTION="Python binding for LeechCore Physical Memory Acquisition Library" +HOMEPAGE="https://github.com/ufrisk/LeechCore" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# leechcorepyc ships with a bundled version of the LeechCore library. So we +# don't depend on the library here. But we must be aware this module doesn't +# use the system library. +DEPEND="virtual/libusb:=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-2.14.0-respect-CC.patch" +) + +src_prepare() { + default + + # Avoid redefining _FORTIFY_SOURCE. See #893824, #906715. + sed -i -e 's/ -D_FORTIFY_SOURCE=2 / /g' leechcore/Makefile || die +} + +src_configure() { + tc-export CC + + distutils-r1_src_configure +} diff --git a/dev-python/mautrix/Manifest b/dev-python/mautrix/Manifest index 294d72005dad..0a25b46ca343 100644 --- a/dev-python/mautrix/Manifest +++ b/dev-python/mautrix/Manifest @@ -1,2 +1,2 @@ -DIST mautrix-0.20.0.tar.gz 243507 BLAKE2B 849d7af298ee16cba88a81debbe7cabbdcaa8241e6ea1951b8748d212ea7e62371fc4340fcc5499e16180d03a7f6a47d3eaf730c0f474d8621be7d045a82fd43 SHA512 0e4e2da4aa5d670b89c0b4245c47d8a50daa8c14745c2f984c8affd2f6984b23808a03902b692b08f792504ac315a2084a1170b9e41b923c74d9eb8ce53dcc50 DIST mautrix-0.20.1.tar.gz 242438 BLAKE2B 727717f2762c8bfc4194602112f2412b3ab41480c24a910a375e234cce4b156cfd73dffb0b5e3957b3593be4f4940a32463e41a69abbd56ad521dbe5a74bc974 SHA512 8d405de08289faa290e5eb102651bfd566e84b3dc5c21b04910fdb9da73fe4386bd05949b2eaa530a82b6bc3f20a6ca1bbb39c8159c348c4b03a11c510111ee9 +DIST mautrix-0.20.2.tar.gz 243231 BLAKE2B 2fc028d05d26a2bf0764a2e928fa7998f02c403637ee6046850c64825b385fab845801909f7fdf71a7b052a586df1bde7be7d47660f9818a103cea08d1e3db41 SHA512 7dd6409a58d2e073f50f97153f2c7323de49d722c91bb4582994f5381f855be874dc861cdbdc7641dd00880539569214ac45635c4cfc314c25144d3869aeda53 diff --git a/dev-python/mautrix/mautrix-0.20.0.ebuild b/dev-python/mautrix/mautrix-0.20.2.ebuild index f5250ee581f5..f5250ee581f5 100644 --- a/dev-python/mautrix/mautrix-0.20.0.ebuild +++ b/dev-python/mautrix/mautrix-0.20.2.ebuild diff --git a/dev-python/numpy/numpy-1.26.0.ebuild b/dev-python/numpy/numpy-1.26.0.ebuild index 21aa6ca025c4..3d3a143a51c6 100644 --- a/dev-python/numpy/numpy-1.26.0.ebuild +++ b/dev-python/numpy/numpy-1.26.0.ebuild @@ -20,7 +20,9 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -IUSE="lapack" +# +lapack because the internal fallbacks are pretty slow. Building without blas +# is barely supported anyway, see bug #914358. +IUSE="+lapack" if [[ ${PV} != *_[rab]* ]] ; then KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" fi @@ -59,6 +61,7 @@ python_prepare_all() { python_configure_all() { DISTUTILS_ARGS=( + -Dallow-noblas=$(usex !lapack true false) -Dblas=$(usev lapack cblas) -Dlapack=$(usev lapack lapack) # TODO: cpu-* options diff --git a/dev-python/portalocker/Manifest b/dev-python/portalocker/Manifest index fd8a2603129a..b57d3027b596 100644 --- a/dev-python/portalocker/Manifest +++ b/dev-python/portalocker/Manifest @@ -1,5 +1,2 @@ -DIST portalocker-2.6.0.tar.gz 20066 BLAKE2B cbee069ad29a02b5ae3a9c865d2fbc275aa2e9eba48fbcd9ae70172d80c53776ea6d0bd7166f53a257b841963f8ae452c8addd8f2da6c38fcb647bdec1de732a SHA512 0c8daf0aec035bca2eee3f0f3853cd02a24841dd8ab319d38e98de39378f0b252de24984f452e5bbcb13178a9929717b7c23c04a1d8bb3d1f5e2b082cc4658b0 DIST portalocker-2.7.0.gh.tar.gz 29787 BLAKE2B 14c2742978396c0d1bb5bdcd8c3eeb5af676d57bcc5bfb34bbf397655895f66b7c48a3a8d6c035e62aed3278f20ba4e5d5b0d88d0bac01b4dd6bab9e5ebcf40a SHA512 ca1d7c6ec57b4f95d138975f47a3fdaed35be9b580331dbd58159adbbdce63666e82d89eb6bd3ce614778c525fd04144faa4880d5fea976772d72a247999f2c9 -EBUILD portalocker-2.6.0.ebuild 1012 BLAKE2B f8b1acb63fe10f85f693236140baa5100b4b6d896196251b120615b5f1675b8872072f884a43cb384e3efbf162bd6ea70fedabc6f1c1749f7504785598f1b4ac SHA512 9dcf5bed55bdf7be8d721e111f71f96aa71dba9a7301d8f4b4841905f9d90e963e767ad785f27f3713ceb5d652b6dc2e65f5f406622bf2cc9e7f61cdc8bf36e7 -EBUILD portalocker-2.7.0.ebuild 1155 BLAKE2B a712d7b56f556ea928733daf9eba03d571289972f66a6480ae47febb9bf7a1e94dc375d0c797c8789b37d1816ce8ab836011e676f62d0e39cf0fc6d16a35a5fd SHA512 47348c43f34f689595bd804bbf69ba35602cedc7e5c9cae57ee24ac01264e74fc7ba76e2fe3871ad2aabc8c4fd9585cd2e73468d97e46021bd2d7c2a6fb24944 -MISC metadata.xml 452 BLAKE2B 89f271f919e43235addf7eadec8b3bcb1e1e7a95010fa6366787a055d87fd401b5f2764a5ee2440f8d67eb44bdbc5d95c881cd0ac7e2d973f5dacc879b1b3273 SHA512 1ffd0ee488151d2a59b459bc2dc437374944afe09acfcfff79e3e4616ac35cee9da2f3c10df4156e1c5300a076938fc2dc379d8581e7fea21de7074288fd2781 +DIST portalocker-2.8.2.gh.tar.gz 32382 BLAKE2B d953165d4e64d4bf5d084a9d5563b6e53515abbddeb7f9a4a49ea3358ff3bafc9631f38322e4a7ff1ab702aff4813eb52b4a7c431f411d767afd0647347d37af SHA512 3772ea6d15ee80d284c7fc7e88bdc9ab7714b460fdca39c2a288e0375c16f430bf9362da06227084dc2e56bd7342bd2d59823a94daf52ca51366e69fe6456236 diff --git a/dev-python/portalocker/metadata.xml b/dev-python/portalocker/metadata.xml index 506e20aceda1..1c5a9d8dd3ed 100644 --- a/dev-python/portalocker/metadata.xml +++ b/dev-python/portalocker/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>flow@gentoo.org</email> + <name>Florian Schmaus</name> </maintainer> - <upstream> - <bugs-to>https://github.com/WoLpH/portalocker/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/portalocker/portalocker-2.6.0.ebuild b/dev-python/portalocker/portalocker-2.6.0.ebuild deleted file mode 100644 index d0077c72e92b..000000000000 --- a/dev-python/portalocker/portalocker-2.6.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11} ) - -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Portalocker is a library to provide an easy API to file locking." -HOMEPAGE="https://github.com/WoLpH/portalocker" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -BDEPEND=" - test? ( - dev-db/redis - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/redis[${PYTHON_USEDEP}] - ) -" - -distutils_enable_sphinx doc -distutils_enable_tests pytest - -src_test() { - local redis_pid="${T}"/redis.pid - local redis_port=6379 - - einfo "Spawning Redis" - einfo "NOTE: Port ${redis_port} must be free" - "${EPREFIX}"/usr/sbin/redis-server - <<-EOF || die - daemonize yes - pidfile ${redis_pid} - port ${redis_port} - bind 127.0.0.1 - EOF - - # Run the tests - distutils-r1_src_test - - # Clean up afterwards - kill "$(<"${redis_pid}")" || die -} - -pkg_postinst() { - optfeature "redis support" dev-python/redis -} diff --git a/dev-python/portalocker/portalocker-2.7.0.ebuild b/dev-python/portalocker/portalocker-2.7.0.ebuild index 9da951a7c61d..eee5a6232d93 100644 --- a/dev-python/portalocker/portalocker-2.7.0.ebuild +++ b/dev-python/portalocker/portalocker-2.7.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -8,9 +8,16 @@ PYTHON_COMPAT=( python3_{8,9,10,11} ) inherit distutils-r1 optfeature -DESCRIPTION="Portalocker is a library to provide an easy API to file locking." -HOMEPAGE="https://github.com/WoLpH/portalocker" -SRC_URI="https://github.com/WoLpH/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" +DESCRIPTION="A library for Python file locking" +HOMEPAGE=" + https://github.com/WoLpH/portalocker + https://portalocker.readthedocs.io + https://pypi.org/project/portalocker/ +" +SRC_URI=" + https://github.com/WoLpH/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="BSD" SLOT="0" @@ -18,38 +25,19 @@ KEYWORDS="~amd64" BDEPEND=" test? ( - dev-db/redis - dev-python/pytest-timeout[${PYTHON_USEDEP}] dev-python/redis[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-6.0.0[${PYTHON_USEDEP}] ) " -distutils_enable_sphinx docs distutils_enable_tests pytest src_prepare() { - sed -i -e '/cov/d' pytest.ini || die default -} - -src_test() { - local redis_pid="${T}"/redis.pid - local redis_port=6379 - - einfo "Spawning Redis" - einfo "NOTE: Port ${redis_port} must be free" - "${EPREFIX}"/usr/sbin/redis-server - <<-EOF || die - daemonize yes - pidfile ${redis_pid} - port ${redis_port} - bind 127.0.0.1 - EOF - - # Run the tests - distutils-r1_src_test - # Clean up afterwards - kill "$(<"${redis_pid}")" || die + # Disable code coverage in tests. + sed -i '/^ *--cov.*$/d' pytest.ini || die } pkg_postinst() { diff --git a/dev-python/portalocker/portalocker-2.8.2.ebuild b/dev-python/portalocker/portalocker-2.8.2.ebuild new file mode 100644 index 000000000000..a5efa97d2be2 --- /dev/null +++ b/dev-python/portalocker/portalocker-2.8.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A library for Python file locking" +HOMEPAGE=" + https://github.com/WoLpH/portalocker/ + https://portalocker.readthedocs.io/ + https://pypi.org/project/portalocker/ +" +SRC_URI=" + https://github.com/WoLpH/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + test? ( + dev-python/redis[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-6.0.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + default + + # Disable code coverage in tests. + sed -i '/^ *--cov.*$/d' pytest.ini || die +} + +pkg_postinst() { + optfeature "redis support" dev-python/redis +} diff --git a/dev-python/python-ptrace/files/python-ptrace-0.9.8-python3_12.patch b/dev-python/python-ptrace/files/python-ptrace-0.9.8-python3_12.patch new file mode 100644 index 000000000000..fc7e55f6160e --- /dev/null +++ b/dev-python/python-ptrace/files/python-ptrace-0.9.8-python3_12.patch @@ -0,0 +1,30 @@ +Upstream: https://github.com/vstinner/python-ptrace/pull/81 +commit 80e0c97a84eccb8b82737cf40b9c5581c20c245f +Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> +Date: Sat Sep 16 13:49:43 2023 +0200 + + Remove deprecated `imp` module + +--- a/setup.py ++++ b/setup.py +@@ -28,7 +28,7 @@ + # - git commit -a -m "post-release" + # - git push + +-from imp import load_source ++import importlib.util + from os import path + try: + # setuptools supports bdist_wheel +@@ -55,7 +55,10 @@ CLASSIFIERS = [ + with open('README.rst') as fp: + LONG_DESCRIPTION = fp.read() + +-ptrace = load_source("version", path.join("ptrace", "version.py")) ++ptrace_spec = importlib.util.spec_from_file_location("version", path.join("ptrace", "version.py")) ++ptrace = importlib.util.module_from_spec(ptrace_spec) ++ptrace_spec.loader.exec_module(ptrace) ++ + PACKAGES = {} + for name in MODULES: + PACKAGES[name] = name.replace(".", "/") diff --git a/dev-python/python-ptrace/python-ptrace-0.9.8-r1.ebuild b/dev-python/python-ptrace/python-ptrace-0.9.8-r1.ebuild new file mode 100644 index 000000000000..382693e8bc8d --- /dev/null +++ b/dev-python/python-ptrace/python-ptrace-0.9.8-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="A Python binding of ptrace library" +HOMEPAGE="https://github.com/vstinner/python-ptrace" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vstinner/python-ptrace" +else + SRC_URI="https://github.com/vstinner/python-ptrace/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND="${PYTHON_DEPS} + dev-python/six[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/${P}-python3_12.patch" +) + +distutils_enable_tests pytest + +src_test() { + ./runtests.py --tests tests/ || die +} diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest index ad574c727fd7..d11c9cc27921 100644 --- a/dev-python/rich/Manifest +++ b/dev-python/rich/Manifest @@ -1,2 +1,3 @@ DIST rich-13.4.2.gh.tar.gz 15063000 BLAKE2B f65079440bc7d89a3ff03be01fa71e076493ae50f22ae8781be2448a7ff2769c174d6654db3a835d34720c34cd8cbecfdd6b13e3064cf7fdcade71806563309d SHA512 17052a9fb0e1d89b31a00d8a719214719891d048fd805185b2d4258c8766130f44bf2280c9567bc162f3b34d9bf2eb7d747d6a37d910c81cd53d3003b51f70bd DIST rich-13.5.2.gh.tar.gz 15064941 BLAKE2B 64f7e879588c42db9ac4f2173647143722c1de4865479b975ac5362e8073f60b493193abb0f50fb0d85923fdbe4145b2331fff7564ab78e3b43bc3a1be9d461c SHA512 60dfc66836f277763695611f6a3890da21afbb84bd85f38952efdac78680a8e3faca2e8c0aa937d618f876df1f36d3e67986979aa4fa9b6cb7dfb214f348b8aa +DIST rich-13.5.3.gh.tar.gz 15065440 BLAKE2B cba268b36499c0f65980ba7b7ce327c53d598b856a39e6c69989b55d488eb0bbe305b6ebf1ca0370251aa8f9ec7dacc6bdee612587a9ace9c66f19d91fdc20b8 SHA512 acae49b796c8ff310b272bca43ce925fe717ddc6252dec20784a4730e63e9c0f81f459ee40b152c001ad0a512e47dddaadbb8fbb949ced262e2d5429b6396344 diff --git a/dev-python/rich/rich-13.5.3.ebuild b/dev-python/rich/rich-13.5.3.ebuild new file mode 100644 index 000000000000..e6a03fb29a68 --- /dev/null +++ b/dev-python/rich/rich-13.5.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8,9,10,11} pypy3 ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Python library for rendering rich text, tables, etc. to the terminal" +HOMEPAGE=" + https://github.com/Textualize/rich/ + https://pypi.org/project/rich/ +" +SRC_URI=" + https://github.com/Textualize/rich/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/colorama[${PYTHON_USEDEP}] + >=dev-python/markdown-it-py-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pygments-2.13.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local -x COLUMNS=80 + local EPYTEST_DESELECT=( + # TODO + tests/test_console.py::test_size_can_fall_back_to_std_descriptors + tests/test_inspect.py::test_inspect_integer_with_methods_python38_and_python39 + # pygments? + tests/test_syntax.py::test_python_render_simple_indent_guides + tests/test_syntax.py::test_python_render_line_range_indent_guides + tests/test_card.py::test_card_render + tests/test_markdown.py::test_markdown_render + tests/test_markdown_no_hyperlinks.py::test_markdown_render + tests/test_syntax.py::test_python_render + tests/test_syntax.py::test_python_render_simple + tests/test_syntax.py::test_python_render_simple_passing_lexer_instance + tests/test_syntax.py::test_python_render_indent_guides + tests/test_syntax.py::test_option_no_wrap + tests/test_syntax.py::test_syntax_highlight_ranges + ) + # version-specific output -- the usual deal + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # pypy3.10, to be more precise + tests/test_inspect.py::test_inspect_integer_with_methods_python310only + ) + ;; + python3.12) + EPYTEST_DESELECT+=( + tests/test_inspect.py::test_inspect_builtin_function_except_python311 + tests/test_inspect.py::test_inspect_integer_with_methods_python310only + tests/test_inspect.py::test_inspect_integer_with_methods_python311_and_above + tests/test_pretty.py::test_attrs_broken + ) + ;; + esac + epytest -p no:pytest-qt +} + +pkg_postinst() { + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets +} diff --git a/dev-python/stestr/Manifest b/dev-python/stestr/Manifest index 310dea6bb7d3..6e0d03d61165 100644 --- a/dev-python/stestr/Manifest +++ b/dev-python/stestr/Manifest @@ -1 +1,2 @@ DIST stestr-4.0.1.tar.gz 111695 BLAKE2B e9ced9237f3c889c2eb116b51645a6d8b86d8085e2991b421b8955772225342325eb66276f43e710a57d79392974cc42072e0a05b7022c666181b9ca66d51735 SHA512 a74b9278b1941da62af58a087a10e5a0624901ceb81dcdd25eab3a05f003756773551fe6eec46dfb371f7b726cf296abfe0116444fb32c94fb6811440ee22a58 +DIST stestr-4.1.0.tar.gz 113187 BLAKE2B 6bd423aaad6189c90fe9b43db9390e85a5f458cfa899c33bd34b1340ca7f111d2edd2981d9c664d63ec6b880a904b08a26c09c332548ac5f2ebdabd2bad6a00a SHA512 77287ffdfe59042c4d189aa6c662df4357633d3a134ea60a4533b5b8b1b433ffd6f265a430977da175f242cc1c8e8514f876a486cc900a436cf93ab629fe7b7d diff --git a/dev-python/stestr/stestr-4.1.0.ebuild b/dev-python/stestr/stestr-4.1.0.ebuild new file mode 100644 index 000000000000..041bff2798b5 --- /dev/null +++ b/dev-python/stestr/stestr-4.1.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A parallel Python test runner built around subunit" +HOMEPAGE=" + https://github.com/mtreinish/stestr/ + https://pypi.org/project/stestr/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/cliff-2.8.0[${PYTHON_USEDEP}] + >=dev-python/extras-1.0.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}] + >=dev-python/subunit-1.4.0[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] + >=dev-python/voluptuous-0.8.9[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/ddt-1.0.1[${PYTHON_USEDEP}] + ) +" + +python_test() { + stestr init || die + stestr run || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/tavern/Manifest b/dev-python/tavern/Manifest index fa8e5ab2f767..dcc614ce2bd1 100644 --- a/dev-python/tavern/Manifest +++ b/dev-python/tavern/Manifest @@ -1 +1,2 @@ DIST tavern-2.2.0.gh.tar.gz 213603 BLAKE2B 3a192424817d641da7428e27d49c553f9554fb740c9b0cde0d8e693fc204deb15d6f08f8bb60d961278f26b9f7c17bffb68cc7136cc9cc496eb74dd845ec5158 SHA512 731e479f3fe69cdaa28e391512207edde1084f3844da9c77ee7c917096422a009a4beeed9c135b773550c181f698d41ac83b013b111535e527f90569e16a00b4 +DIST tavern-2.3.0.gh.tar.gz 211676 BLAKE2B 80506d846036c7a68bf27c30e734a92983eadaff07e68a101e120a6284be750bc195817f1686cdaabe8dfe906720e5b41d22098db8f91e911438a60a2cbdd5db SHA512 2c1292cd047195b6e2059514f517b29caebeac3af370b298938cbbc8b5bc861dd818c3e45e25a65fa1acbbae96f36aa2d024edcee49b0086d459f3d41d4052ed diff --git a/dev-python/tavern/tavern-2.3.0.ebuild b/dev-python/tavern/tavern-2.3.0.ebuild new file mode 100644 index 000000000000..4dea78f7103c --- /dev/null +++ b/dev-python/tavern/tavern-2.3.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="A tool, library, and Pytest plugin for testing RESTful APIs" +HOMEPAGE=" + https://github.com/taverntesting/tavern/ + https://pypi.org/project/tavern/ +" +SRC_URI=" + https://github.com/taverntesting/tavern/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/jmespath[${PYTHON_USEDEP}] + dev-python/paho-mqtt[${PYTHON_USEDEP}] + dev-python/pyjwt[${PYTHON_USEDEP}] + dev-python/pykwalify[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/python-box[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/stevedore[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/Faker[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # strip unnecessary pins, upstream doesn't update them a lot + sed -i -E -e 's:,?<=?[0-9.]+::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + epytest -p tavern +} diff --git a/dev-python/typing-extensions/Manifest b/dev-python/typing-extensions/Manifest index f3af271c07f4..1e3a04957ab5 100644 --- a/dev-python/typing-extensions/Manifest +++ b/dev-python/typing-extensions/Manifest @@ -1 +1,2 @@ DIST typing_extensions-4.7.1.gh.tar.gz 84841 BLAKE2B 9b49b37c90b90775995d9d77b6b480eeab51b71a9af9474c0f43db021106ff02d0e4e882be04c114477ff2b386037c286e9de2d9cd2394bd4e1459ce7c6e1951 SHA512 948f6c5c9597f6cf7d77987d1a5dad9f15b4303f9d156de3d97abda0c55567b2649eb6df7ac36a07f9d6306103d81fd00a38b04b3b5c521ff2f8f153f9219fb1 +DIST typing_extensions-4.8.0.gh.tar.gz 83807 BLAKE2B 4b160b79117dfeb83e911ff8c2b91a97512a70c1c5a2a87d6d2bcab7f5604efdb192c3c4eb5cfd7c102744c786e014dafc6346e5c544ec4f995d5810c83f8e73 SHA512 1e82f49d837c3fbead7d0867db667f97be2836f1f98bcde7315eb8c5455e605659fe7759ccf86fcbb2373789d9dab500a3b2a75bbcaf9216521c6b8c2796090a diff --git a/dev-python/typing-extensions/typing-extensions-4.8.0.ebuild b/dev-python/typing-extensions/typing-extensions-4.8.0.ebuild new file mode 100644 index 000000000000..1f887e17aaa7 --- /dev/null +++ b/dev-python/typing-extensions/typing-extensions-4.8.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11} pypy3 ) + +inherit distutils-r1 + +MY_P=${P/-/_} +DESCRIPTION="Backported and Experimental Type Hints for Python 3.7+" +HOMEPAGE=" + https://pypi.org/project/typing-extensions/ + https://github.com/python/typing_extensions/ +" +SRC_URI=" + https://github.com/python/typing_extensions/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +distutils_enable_tests unittest + +python_test() { + cd src || die + eunittest +} diff --git a/dev-python/xlsxwriter/Manifest b/dev-python/xlsxwriter/Manifest index 61021d1ce7ae..daf18a26ed0e 100644 --- a/dev-python/xlsxwriter/Manifest +++ b/dev-python/xlsxwriter/Manifest @@ -1,2 +1,3 @@ DIST XlsxWriter-RELEASE_3.1.2.gh.tar.gz 36697835 BLAKE2B 055d0ac2e70ce5f86167f630044136f984bf19b494cb2ea5d7b98ce2098942e4c89eb0c3c3a8eeb48b1a4dcff30b71d45c2f2528634ed2f652d27f358d4778f7 SHA512 05f70721e6c55d54acdc143681ec581d3bf16c5d07725790bc648c169507e3cd9bd600ac4fcb4ff03fa449a6efc469d0745b92fcdb89afbf27ee1e2998c09613 DIST XlsxWriter-RELEASE_3.1.3.gh.tar.gz 37317330 BLAKE2B 08dd76cfb7bcb336d0fa64276d11d0cee90809169cf0597739a262b970cc82741ac56beb681e78e7f3d88bec65f4a5c4b7a368ea800aab8bcfc4814e5b679638 SHA512 673b51d7d25fae462fb0b40fbb131ffd32237ee0078d235cbe1bb2fb4cee67bf72955aa555e3f5950bee9be7d256dad9ddadba2df4f50dc774cf1fda7503f43c +DIST XlsxWriter-RELEASE_3.1.4.gh.tar.gz 37324495 BLAKE2B ebedb84e46eb73e750b9442969c397bb9c77af807c1bd78fe956bf304ae942cb8575f8f410631c7ae542f9e16c1d5c76385ba232fec109bc5ccf59fd1843b2c3 SHA512 2faa7a9fc03a620c3a1f9230685b2bd09c5b282fb783d36a28de225b1d5e64663db32cd5da1a16ffe3cb4bc886f77b79eb7f13ce460c18f6e88667b9979e504e diff --git a/dev-python/xlsxwriter/xlsxwriter-3.1.4.ebuild b/dev-python/xlsxwriter/xlsxwriter-3.1.4.ebuild new file mode 100644 index 000000000000..ebaeb3e4f89f --- /dev/null +++ b/dev-python/xlsxwriter/xlsxwriter-3.1.4.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11} pypy3 ) + +inherit distutils-r1 + +TAG=RELEASE_${PV} +MY_P=XlsxWriter-${TAG} +DESCRIPTION="Python module for creating Excel XLSX files" +HOMEPAGE=" + https://github.com/jmcnamara/XlsxWriter/ + https://pypi.org/project/XlsxWriter/ +" +SRC_URI=" + https://github.com/jmcnamara/XlsxWriter/archive/${TAG}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +distutils_enable_tests pytest diff --git a/dev-python/yara-python/Manifest b/dev-python/yara-python/Manifest index eb0fb2a1152d..4915913f7eb2 100644 --- a/dev-python/yara-python/Manifest +++ b/dev-python/yara-python/Manifest @@ -1 +1,2 @@ DIST yara-python-4.3.1.gh.tar.gz 37871 BLAKE2B d8b8eac6b12dc4c5c3362e8b5396fe9ff5a0b0557488ed94257ec2b7be813c870d39f78b53b3312b6b1100f4bdc81375ebf27cd21a569c5688503b81934c3881 SHA512 78cd53f756967ef79cc742acffaeea53631ee475c07efd1506eba7e0630b2e570ba03686da1fa3247c9339faa67daf6c372913731b73233626661c0a9f575e41 +DIST yara-python-4.4.0.gh.tar.gz 38072 BLAKE2B 748dab52e99e264c7d9eb0d7d4482fb76b29f8463f031cf20687e30ae792141633d12e6b3f20303c8ee99bcdaafa01a3df9f73aaf3dd722ad5da9820e6a4d39e SHA512 bc72c2f65e3fe3d7f94728565143b787df6cc63313a3e8b9f159a5cfc3c947f5233674a1213fd2c6454f6165b676da366319794f9fa7c695c43e5523c29a1432 diff --git a/dev-python/yara-python/files/yara-python-4.4.0-python3_12.patch b/dev-python/yara-python/files/yara-python-4.4.0-python3_12.patch new file mode 100644 index 000000000000..36bf1d60f686 --- /dev/null +++ b/dev-python/yara-python/files/yara-python-4.4.0-python3_12.patch @@ -0,0 +1,17 @@ +Upstream: https://github.com/VirusTotal/yara-python/pull/244 +From c00fd68cfb2f00c4bfe4ea6465a93af2d1d1a68f Mon Sep 17 00:00:00 2001 +From: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> +Date: Sat, 16 Sep 2023 17:35:36 +0200 +Subject: [PATCH] Fix unknown escape sequence + +--- a/tests.py ++++ b/tests.py +@@ -719,7 +719,7 @@ def testRE(self): + 'rule test { strings: $a = /[M-N]iss/ nocase condition: $a }', + 'rule test { strings: $a = /(Mi|ssi)ssippi/ nocase condition: $a }', + r'rule test { strings: $a = /ppi\tmi/ condition: $a }', +- 'rule test { strings: $a = /ppi\.mi/ condition: $a }', ++ r'rule test { strings: $a = /ppi\.mi/ condition: $a }', + 'rule test { strings: $a = /^mississippi/ fullword condition: $a }', + 'rule test { strings: $a = /mississippi.*mississippi$/s condition: $a }', + ], 'mississippi\tmississippi.mississippi\nmississippi') diff --git a/dev-python/yara-python/yara-python-4.4.0.ebuild b/dev-python/yara-python/yara-python-4.4.0.ebuild new file mode 100644 index 000000000000..e9c17f7efc76 --- /dev/null +++ b/dev-python/yara-python/yara-python-4.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{8,9,10,11} ) +inherit distutils-r1 + +DESCRIPTION="Python interface for a malware identification and classification tool" +HOMEPAGE="https://github.com/VirusTotal/yara-python" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + 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" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + =app-forensics/yara-$(ver_cut 1-2)* +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-python3_12.patch" +) + +distutils_enable_tests unittest + +python_configure_all() { + cat >> setup.cfg <<-EOF + [build_ext] + dynamic_linking = True + EOF +} + +python_test() { + "${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/yara-python/yara-python-9999.ebuild b/dev-python/yara-python/yara-python-9999.ebuild index 2dd7a5b18100..82f88d79a6ac 100644 --- a/dev-python/yara-python/yara-python-9999.ebuild +++ b/dev-python/yara-python/yara-python-9999.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 PYTHON_COMPAT=( python3_{8,9,10,11} ) inherit distutils-r1 |
