commit:     7f2376277fab811d768004e151989b24f99fc365
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Mon May 15 16:01:08 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Mon May 15 16:01:08 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=7f237627

dev-python/numcodecs: add 0.11.0

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 .../numcodecs/files/numcodecs-0.11.0-nocov.patch   | 11 ++++++
 dev-python/numcodecs/numcodecs-0.11.0.ebuild       | 41 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-python/numcodecs/files/numcodecs-0.11.0-nocov.patch 
b/dev-python/numcodecs/files/numcodecs-0.11.0-nocov.patch
new file mode 100644
index 000000000..2d5e7f86e
--- /dev/null
+++ b/dev-python/numcodecs/files/numcodecs-0.11.0-nocov.patch
@@ -0,0 +1,11 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -87,7 +87,7 @@ exclude_lines = [
+ ]
+ 
+ [tool.pytest.ini_options]
+-addopts = "--cov=numcodecs --cov-report xml --doctest-modules 
--doctest-glob=*.pyx"
++addopts = "--pyargs numcodecs --doctest-modules --doctest-glob=*.pyx"
+ doctest_optionflags = [
+     "NORMALIZE_WHITESPACE",
+     "ELLIPSIS",

diff --git a/dev-python/numcodecs/numcodecs-0.11.0.ebuild 
b/dev-python/numcodecs/numcodecs-0.11.0.ebuild
new file mode 100644
index 000000000..53c46ebe9
--- /dev/null
+++ b/dev-python/numcodecs/numcodecs-0.11.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Data storage buffer compression and transformation codecs"
+HOMEPAGE="https://github.com/zarr-developers/numcodecs";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+# Fails to collect tests for yet unknown reasons:
+# https://github.com/zarr-developers/numcodecs/issues/304
+# --pyargs numcodecs fix proposed in thread doesn't seem to take effect.
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/cython[${PYTHON_USEDEP}]
+       dev-python/entrypoints[${PYTHON_USEDEP}]
+       dev-python/msgpack[${PYTHON_USEDEP}]
+       dev-python/numpy[${PYTHON_USEDEP}]
+       dev-python/py-cpuinfo[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+       test? (
+               ${RDEPEND}
+               dev-python/entrypoints[${PYTHON_USEDEP}]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/${P}-nocov.patch"
+)
+
+distutils_enable_tests pytest

Reply via email to