diff --git a/dev-python/indexed-gzip/Manifest b/dev-python/indexed-gzip/Manifest index 57c71f05add7..1c7607c5c0d0 100644 --- a/dev-python/indexed-gzip/Manifest +++ b/dev-python/indexed-gzip/Manifest @@ -1 +1,2 @@ DIST indexed_gzip-1.10.1.tar.gz 267180 BLAKE2B 0ee462826424ba1fd920969355d976167a9278b0a247493dc4d79510101a7b14a8db056fe329f3d6fb2ac40ab08e783b1f3e638a172555b8e3b70122576d8405 SHA512 950317796adc125d2ed22573b573d98fcbaefed1d973126f7fb886575f8413338041d0f28027de2265434b54d2fffe32107c52d52ad6d19c0a0087f10824eac1 +DIST indexed_gzip-1.10.3.tar.gz 275900 BLAKE2B 7c65a6351a368222262ea56f09b193971959a3a5a56e7e8c949b47c76b2f7a96056f925f795da1b4215cf63dc1f904e826bff0ac7e75c0b990e681f7d5609db7 SHA512 3b5a00ba004d43f4a5fa76d127df7136f1db227de5f294a4e128df8d7da64f7a16d9c4106dd92510a3528c7b66f27f59f2968830430c94f544ce9dd6c69699b5 diff --git a/dev-python/indexed-gzip/indexed-gzip-1.10.3.ebuild b/dev-python/indexed-gzip/indexed-gzip-1.10.3.ebuild new file mode 100644 index 000000000000..7d440abe122d --- /dev/null +++ b/dev-python/indexed-gzip/indexed-gzip-1.10.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 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_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + virtual/zlib:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_compile() { + # This actually enables line tracing, so it fits USE=debug more. + if use debug; then + export INDEXED_GZIP_TESTING=1 + fi + # Fix implicit dependency on numpy that is used to build test + # extensions. + if ! use test; then + local -x PYTHONPATH="${T}:${PYTHONPATH}" + cat >> "${T}"/numpy.py <<-EOF || die + raise ImportError("I am not here!") + EOF + fi + distutils-r1_src_compile +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die + epytest -m "not slow_test" + # temporary files and test extensions + # (to achieve equivalence with USE=-test) + rm ctest*.{c,gz,so,tmp} || die +}