summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-04-10 07:57:34 +0200
committerMichał Górny <mgorny@gentoo.org>2023-04-10 08:06:57 +0200
commit76ee0c2fd8957aeb9d743bff7e278213f1ff26c3 (patch)
tree8931bad03855913b90802e4a07bfe3a9b101106d /dev-python/reedsolomon
parentdev-python/moto: Remove old (diff)
downloadgentoo-76ee0c2fd8957aeb9d743bff7e278213f1ff26c3.tar.gz
gentoo-76ee0c2fd8957aeb9d743bff7e278213f1ff26c3.tar.bz2
gentoo-76ee0c2fd8957aeb9d743bff7e278213f1ff26c3.zip
dev-python/reedsolomon: Bump to 2.0.31_beta1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/reedsolomon')
-rw-r--r--dev-python/reedsolomon/Manifest1
-rw-r--r--dev-python/reedsolomon/metadata.xml5
-rw-r--r--dev-python/reedsolomon/reedsolomon-2.0.31_beta1.ebuild37
3 files changed, 42 insertions, 1 deletions
diff --git a/dev-python/reedsolomon/Manifest b/dev-python/reedsolomon/Manifest
index 45e654225b64..e42d671cebfe 100644
--- a/dev-python/reedsolomon/Manifest
+++ b/dev-python/reedsolomon/Manifest
@@ -1 +1,2 @@
+DIST reedsolo-2.0.31b1.tar.gz 379032 BLAKE2B cc7d838f2d3a4c8257cf7865ba31dce3c94f47b64cb3d8c187d7ddc0166f82a01abd41d0671b7776c7b63b09673a14e2ff0401091e03fe72fcb1b1621373784a SHA512 f98cfb058a0c670f7de5b0803b5fc537b2da8f49e39c01e44de1cf659957380775a4c1e93fd0b91f2883e4883b16150c3cbd03fb4ee01314f2d8bdf24a622063
DIST reedsolomon-1.7.0.gh.tar.gz 64279 BLAKE2B 304abdf3709dff52c4c515598c511b8e3080475c0755ab68eb9468652f12d2cdb2763bdf88f5fe5e69813928646a8b8378fee9cb2b24d54ce9a6f2b5fb985ac9 SHA512 c7d2ae8444c9e3d6646587f85fe0085a7579cc58d2f4bca3fb89632df4873e2664c81f06ee2e75e928248bb558a7fd8d101a043187ce05e70a079b031981c374
diff --git a/dev-python/reedsolomon/metadata.xml b/dev-python/reedsolomon/metadata.xml
index f6dd8837456f..0a1f26beb6e6 100644
--- a/dev-python/reedsolomon/metadata.xml
+++ b/dev-python/reedsolomon/metadata.xml
@@ -10,7 +10,10 @@
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
- <remote-id type="github">tomerfiliba/reedsolomon</remote-id>
+ <remote-id type="github">tomerfiliba-org/reedsolomon</remote-id>
<remote-id type="pypi">reedsolo</remote-id>
</upstream>
+ <use>
+ <flag name="native-extensions">Compile native C extensions.</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/reedsolomon/reedsolomon-2.0.31_beta1.ebuild b/dev-python/reedsolomon/reedsolomon-2.0.31_beta1.ebuild
new file mode 100644
index 000000000000..266c7d19915b
--- /dev/null
+++ b/dev-python/reedsolomon/reedsolomon-2.0.31_beta1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=reedsolo
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Reed Solomon encoder/decoder"
+HOMEPAGE="
+ https://github.com/tomerfiliba-org/reedsolomon/
+ https://pypi.org/project/reedsolo/
+"
+
+LICENSE="|| ( Unlicense MIT-0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="+native-extensions"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -i -e '/pytest-cov/d' pyproject.toml || die
+ distutils-r1_src_prepare
+}
+
+src_configure() {
+ if use native-extensions; then
+ DISTUTILS_ARGS=(
+ # TODO: switch to --cythonize once we're on cython-3
+ --native-compile
+ )
+ fi
+}