From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/indexed_gzip/Manifest | 1 + dev-python/indexed_gzip/indexed_gzip-0.8.10.ebuild | 40 ++++++++++++++++++++++ dev-python/indexed_gzip/metadata.xml | 24 +++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-python/indexed_gzip/Manifest create mode 100644 dev-python/indexed_gzip/indexed_gzip-0.8.10.ebuild create mode 100644 dev-python/indexed_gzip/metadata.xml (limited to 'dev-python/indexed_gzip') diff --git a/dev-python/indexed_gzip/Manifest b/dev-python/indexed_gzip/Manifest new file mode 100644 index 000000000000..1d1b3858635d --- /dev/null +++ b/dev-python/indexed_gzip/Manifest @@ -0,0 +1 @@ +DIST indexed_gzip-0.8.10.tar.gz 79133 BLAKE2B ebb5bc69d92b627b0546c8570ea533a7d6541cffbda6ddbf38d2712e5d7b13f5684a4d962b457cb0beaf8f6d9d6c5bd810c31af18396d7ce2a7d3f9ce0a039d6 SHA512 cd57a0442e95a4760d710227a5d9f69841bef851427c536e5cfde7c9f962c9d403e0b38341ba2e07c5cde668e0f26ff7848d154f6243a2cee1cf6c327a7f4e1e diff --git a/dev-python/indexed_gzip/indexed_gzip-0.8.10.ebuild b/dev-python/indexed_gzip/indexed_gzip-0.8.10.ebuild new file mode 100644 index 000000000000..e18054409874 --- /dev/null +++ b/dev-python/indexed_gzip/indexed_gzip-0.8.10.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE="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" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) + " +RDEPEND="" + +src_compile() { + if use test; then + export INDEXED_GZIP_TESTING=1 + fi + distutils-r1_src_compile +} + +python_test() { + cp conftest.py "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + pytest -vv --nelems 500000 --niters 250 || die +} diff --git a/dev-python/indexed_gzip/metadata.xml b/dev-python/indexed_gzip/metadata.xml new file mode 100644 index 000000000000..85746780bd85 --- /dev/null +++ b/dev-python/indexed_gzip/metadata.xml @@ -0,0 +1,24 @@ + + + + + chr@chymera.eu + Horea Christian + + + proxy-maint@gentoo.org + Proxy Maintainers + + + The indexed_gzip project is a Python extension which aims to provide a + drop-in replacement for the built-in Python gzip.GzipFile class, + the IndexedGzipFile. This package was written to allow fast random + access of compressed NIFTI image files (for which GZIP is the de-facto + compression standard), but will work with any GZIP file. + + + pauldmccarthy/indexed_gzip + indexed-gzip + + gentoo-staging + -- cgit v1.3