1 |
commit: ceda8192bf6732a252ef613c538f623d1cc7ffe0 |
2 |
Author: Horea Christian <horea.christ <AT> yandex <DOT> com> |
3 |
AuthorDate: Fri Oct 5 14:58:51 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 13 13:34:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceda8192 |
7 |
|
8 |
dev-python/indexed_gzip: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
Signed-off-by: Horea Christian <horea.christ <AT> gmail.com> |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10077 |
14 |
|
15 |
dev-python/indexed_gzip/Manifest | 1 + |
16 |
dev-python/indexed_gzip/indexed_gzip-0.8.7.ebuild | 40 +++++++++++++++++++++++ |
17 |
dev-python/indexed_gzip/metadata.xml | 23 +++++++++++++ |
18 |
3 files changed, 64 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/indexed_gzip/Manifest b/dev-python/indexed_gzip/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..72b2a3f1cb2 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/indexed_gzip/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST indexed_gzip-0.8.7.tar.gz 77640 BLAKE2B ff35693204a41df439b835f232b4e0ad5ceab19532a7f1f4a4aba5cfd810f447ea56c0f6cc0c5600f32317c5a4f4283a3dd5bc791dc9aec5742303728e76ecc2 SHA512 90872898b69269f42d28f61f7840879c1942060da923e8d5480c4f99feb160c1b03412378b1dda3cdf94f64434d81e4cdc524e19c268797f11444362149d0e18 |
27 |
|
28 |
diff --git a/dev-python/indexed_gzip/indexed_gzip-0.8.7.ebuild b/dev-python/indexed_gzip/indexed_gzip-0.8.7.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..3533fde36c9 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/indexed_gzip/indexed_gzip-0.8.7.ebuild |
33 |
@@ -0,0 +1,40 @@ |
34 |
+# Copyright 1999-2018 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
40 |
+ |
41 |
+inherit distutils-r1 virtualx |
42 |
+ |
43 |
+DESCRIPTION="Fast random access of gzip files in Python" |
44 |
+HOMEPAGE="https://github.com/pauldmccarthy/indexed_gzip" |
45 |
+SRC_URI="https://github.com/pauldmccarthy/indexed_gzip/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="ZLIB" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ dev-python/cython[${PYTHON_USEDEP}] |
55 |
+ test? ( |
56 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+ " |
60 |
+RDEPEND="" |
61 |
+ |
62 |
+src_compile() { |
63 |
+ if use test; then |
64 |
+ export INDEXED_GZIP_TESTING=1 |
65 |
+ fi |
66 |
+ distutils-r1_src_compile |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ cp conftest.py "${BUILD_DIR}" || die |
71 |
+ cd "${BUILD_DIR}" || die |
72 |
+ pytest -vv --nelems 500000 --niters 250 || die |
73 |
+} |
74 |
|
75 |
diff --git a/dev-python/indexed_gzip/metadata.xml b/dev-python/indexed_gzip/metadata.xml |
76 |
new file mode 100644 |
77 |
index 00000000000..11c36e8de92 |
78 |
--- /dev/null |
79 |
+++ b/dev-python/indexed_gzip/metadata.xml |
80 |
@@ -0,0 +1,23 @@ |
81 |
+<?xml version='1.0' encoding='UTF-8'?> |
82 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
83 |
+<pkgmetadata> |
84 |
+ <maintainer type="person"> |
85 |
+ <email>horea.christ@×××××.com</email> |
86 |
+ <name>Horea Christian</name> |
87 |
+ </maintainer> |
88 |
+ <maintainer type="project"> |
89 |
+ <email>proxy-maint@g.o</email> |
90 |
+ <name>Proxy Maintainers</name> |
91 |
+ </maintainer> |
92 |
+ <longdescription lang="en"> |
93 |
+ The indexed_gzip project is a Python extension which aims to provide a |
94 |
+ drop-in replacement for the built-in Python gzip.GzipFile class, |
95 |
+ the IndexedGzipFile. This package was written to allow fast random |
96 |
+ access of compressed NIFTI image files (for which GZIP is the de-facto |
97 |
+ compression standard), but will work with any GZIP file. |
98 |
+ </longdescription> |
99 |
+ <upstream> |
100 |
+ <remote-id type="github">pauldmccarthy/indexed_gzip</remote-id> |
101 |
+ <remote-id type="pypi">indexed-gzip"</remote-id> |
102 |
+ </upstream> |
103 |
+</pkgmetadata> |