diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-10 11:34:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-10 11:34:01 +0000 |
commit | cc901a8ce7c6bfe97e3b4f048619693d360ae348 (patch) | |
tree | c250ff07a4d508fa08b487b616e0ae8aff2f0d8e /dev-python/re-assert | |
parent | c9badf79e4669147edb94182af5776072f2ffaea (diff) |
gentoo auto-resync : 10:02:2024 - 11:34:00
Diffstat (limited to 'dev-python/re-assert')
-rw-r--r-- | dev-python/re-assert/Manifest | 2 | ||||
-rw-r--r-- | dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch | 16 | ||||
-rw-r--r-- | dev-python/re-assert/re-assert-1.1.0-r2.ebuild | 36 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/re-assert/Manifest b/dev-python/re-assert/Manifest index 2635ce54da74..249e0d35f12f 100644 --- a/dev-python/re-assert/Manifest +++ b/dev-python/re-assert/Manifest @@ -1,3 +1,5 @@ +AUX re-assert-1.1.0-re-fallback.patch 368 BLAKE2B 44bdd53f5583118459dd3f39dc501215f8be59217628ef1be70fc8708870b01154d1e3e911532ee5ba64f1e6fc0d84f5cd5631a8c2812699592861a68baaf2cc SHA512 d2c1d33db83b91712535e27b9121abbfb54a79acc216edbc3c470bf9f5cda64763d3d6c5a6db446f263186fdb68f0a62ad4b8611ff30ac47a5f36ebc3825ad06 DIST re-assert-1.1.0.gh.tar.gz 5010 BLAKE2B fc65f43b3525d02d877d51f0a1556b6b205dd1126fc205b775f5c0b6c34ee7c3e8d224fc3f46a80e8df4a366674be90221e891e19e12072c87ff82451ca8676c SHA512 fc14267cc68a12ff7350982f0bf54c77107809c9f0379ab3aa73fa1b7cf5ccabb130fcd35ab75bdf183e69c802a041deac707e1f0bab1c3815d4146b4e320c07 EBUILD re-assert-1.1.0-r1.ebuild 645 BLAKE2B d840683ac8d758bf53ec8394a97f516dd48d3400d41bd65223a7cbfd3a7042074aef77df80a1dcb56e70a2dfe5788e479027613c0c56c525e6312b307b96b8fe SHA512 85ffabd8911dd9afc036cde6907142682af2f7ea656a4b3187080617d04733523d35e5fdd87cea28b039cab1c0701d713cdbac943dce28d88a064c276fa26369 +EBUILD re-assert-1.1.0-r2.ebuild 809 BLAKE2B 9dc163df7654bb134f1365a76065e8904aebca538be1dc2d8ea46567fa014f1bcfd5f940819daecc68ffcd08213ee9f320ecd136f7d5bf67d5e2fbe0dab0156b SHA512 4337c4695a50aff4be44942c106e01b7ee58a1b1486c1f8860a4faa4cb9578f3c98b0aeb1fa9f3b28c5ecee659af1cb8a93e0f79f87281b3423996d811d855c0 MISC metadata.xml 395 BLAKE2B dba34f6404c171596f781768e266b2e3ae21b2572db8695c6d17ffac5cfd91ea63ade4dac01b4961a5b691090ad6940d11cc82b629e6abc71e7b393c70e1f572 SHA512 f6c637f1fd777a2382954939e57c07aba53287f9a148ff19c6444ef249d87ac0e1d003b8ec2c2bbf396f756169dac2205bf597f16f5334a4f94e0032a08fe299 diff --git a/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch b/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch new file mode 100644 index 000000000000..ad04e09ae5bc --- /dev/null +++ b/dev-python/re-assert/files/re-assert-1.1.0-re-fallback.patch @@ -0,0 +1,16 @@ +diff --git a/re_assert.py b/re_assert.py +index f6ea6b9..66479c3 100644 +--- a/re_assert.py ++++ b/re_assert.py +@@ -3,7 +3,10 @@ from __future__ import annotations + from typing import Any + from typing import Pattern + +-import regex ++try: ++ import regex ++except ImportError: ++ import re as regex + + + class Matches: # TODO: Generic[AnyStr] (binary pattern support) diff --git a/dev-python/re-assert/re-assert-1.1.0-r2.ebuild b/dev-python/re-assert/re-assert-1.1.0-r2.ebuild new file mode 100644 index 000000000000..3265b1484c5a --- /dev/null +++ b/dev-python/re-assert/re-assert-1.1.0-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Show where your regex match assertion failed" +HOMEPAGE=" + https://github.com/asottile/re-assert/ + https://pypi.org/project/re-assert/ +" +SRC_URI=" + https://github.com/asottile/re-assert/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/regex[${PYTHON_USEDEP}] + ' 'python*') +" + +distutils_enable_tests pytest + +PATCHES=( + # use `re` as fallback since `regex` doesn't support PyPy + "${FILESDIR}/${P}-re-fallback.patch" +) |