diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-30 07:01:36 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-30 07:01:36 +0000 |
| commit | 216687eabe1b7cfafd62452784bb1ba4abe7a3d2 (patch) | |
| tree | 97c9d0b8dce982ab7883962098c54f77a19c6afd /dev-python/lz4 | |
| parent | 5e57d2b387148ab942c22849d50e0e660168bf58 (diff) | |
| download | baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.tar.gz baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.tar.xz baldeagleos-repo-216687eabe1b7cfafd62452784bb1ba4abe7a3d2.zip | |
Adding metadata
Diffstat (limited to 'dev-python/lz4')
| -rw-r--r-- | dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch | 20 | ||||
| -rw-r--r-- | dev-python/lz4/lz4-4.4.4.ebuild | 6 |
2 files changed, 25 insertions, 1 deletions
diff --git a/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch b/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch new file mode 100644 index 000000000000..9de81cd18e18 --- /dev/null +++ b/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch @@ -0,0 +1,20 @@ +https://github.com/python-lz4/python-lz4/pull/303 +From: Karolina Surma <ksurma@redhat.com> +Date: Thu, 29 May 2025 12:06:30 +0200 +Subject: [PATCH] Correct the import of _compression for Python 3.14 + +This is backwards compatible with all supported versions of Python. +--- a/lz4/frame/__init__.py ++++ b/lz4/frame/__init__.py +@@ -25,9 +25,9 @@ + __doc__ = _doc + + try: +- import _compression # Python 3.6 and later ++ import compression._common._streams as _compression # Python 3.14 + except ImportError: +- from . import _compression ++ import _compression # Python 3.6 - 3.13 + + + BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT diff --git a/dev-python/lz4/lz4-4.4.4.ebuild b/dev-python/lz4/lz4-4.4.4.ebuild index 7f3eb5d7079e..4099cf109613 100644 --- a/dev-python/lz4/lz4-4.4.4.ebuild +++ b/dev-python/lz4/lz4-4.4.4.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 pypi @@ -33,6 +33,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-fix-py3.14.patch # merged upstream +) + # note: test suite fails with xdist distutils_enable_tests pytest |
