diff options
author | 2022-04-17 09:56:51 +0200 | |
---|---|---|
committer | 2022-04-17 10:38:56 +0200 | |
commit | cbda7ac4f0c9cb8bca81eebf34fb3a563a11efdc (patch) | |
tree | 867b3c758def0ec49a3284596f96d46356b6ef57 /dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild | |
parent | dev-util/stripe-mock: Bump to 0.123.0 (diff) | |
download | gentoo-cbda7ac4f0c9cb8bca81eebf34fb3a563a11efdc.tar.gz gentoo-cbda7ac4f0c9cb8bca81eebf34fb3a563a11efdc.tar.bz2 gentoo-cbda7ac4f0c9cb8bca81eebf34fb3a563a11efdc.zip |
dev-python/indexed_gzip: Bump to 1.6.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild')
-rw-r--r-- | dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild b/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild new file mode 100644 index 000000000000..71ce12536dee --- /dev/null +++ b/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" +SRC_URI=" + https://github.com/pauldmccarthy/indexed_gzip/archive/v${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_compile() { + if use test; then + export INDEXED_GZIP_TESTING=1 + fi + distutils-r1_src_compile +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die + epytest +} |