diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-11-29 16:38:11 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-11-29 16:38:59 +0100 |
| commit | 20fd8bbdc56879a02621f34176170416f3e65c59 (patch) | |
| tree | d8a4fbab15dc3f01f0a7fe74336c15709771bd3e /dev-python/backports-zstd/backports-zstd-1.1.0.ebuild | |
| parent | 1343bf72c7f0a9102877a724e7059fa41c557d4d (diff) | |
| download | gentoo-20fd8bbdc56879a02621f34176170416f3e65c59.tar.gz gentoo-20fd8bbdc56879a02621f34176170416f3e65c59.tar.bz2 gentoo-20fd8bbdc56879a02621f34176170416f3e65c59.zip | |
dev-python/backports-zstd: Bump to 1.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/backports-zstd/backports-zstd-1.1.0.ebuild')
| -rw-r--r-- | dev-python/backports-zstd/backports-zstd-1.1.0.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/backports-zstd/backports-zstd-1.1.0.ebuild b/dev-python/backports-zstd/backports-zstd-1.1.0.ebuild new file mode 100644 index 000000000000..36b2b573a9b6 --- /dev/null +++ b/dev-python/backports-zstd/backports-zstd-1.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN/-/.} +PYPI_VERIFY_REPO=https://github.com/Rogdham/backports.zstd +# this is a backport from py3.14, so don't add it +PYTHON_COMPAT=( pypy3_11 python3_{11..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Backport of PEP-784: adding Zstandard to the standard library" +HOMEPAGE=" + https://github.com/Rogdham/backports.zstd/ + https://pypi.org/project/backports.zstd/ +" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86" + +DEPEND=" + app-arch/zstd:= +" +RDEPEND=" + ${DEPEND} +" + +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # remove -flto and other forced cflags + sed -i -e 's:kwargs\["extra.*:pass:' setup.py || die + + DISTUTILS_ARGS=( + --system-zstd + ) + + # remove namespace file + rm src/python/backports/__init__.py || die +} + +python_test() { + eunittest tests +} |
