dev-python/pylzma: fix compilation issue

This commit is contained in:
rick 2025-09-14 00:27:57 +02:00
parent 2533703fc0
commit 0a7d5412cc
No known key found for this signature in database
GPG key ID: D3FB4A5EDD2CBF02

View file

@ -19,6 +19,9 @@ KEYWORDS="~amd64"
distutils_enable_tests unittest
src_prepare() {
# temporary fixes, they should be removed when the upstream is corrected
# https://github.com/fancycode/pylzma/pull/86
sed -i -e 's/args/args, PyObject *kwargs/' src/pylzma/pylzma_decompress.h
sed -i -e 's/EnvironmentError, e/EnvironmentError as e/' tests/test_usage.py
eapply_user
}