From caa838b081641bf3a96ed5726689654432db049c Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Tue, 18 Feb 2025 12:37:00 +0100 Subject: [PATCH] dev-python/numexpr: new package, add 2.9.0 Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/4114 Signed-off-by: Andreas Billmeier --- README.md | 4 +-- dev-python/numexpr/Manifest | 3 ++ dev-python/numexpr/metadata.xml | 16 ++++++++++ dev-python/numexpr/numexpr-2.9.0.ebuild | 40 +++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 dev-python/numexpr/Manifest create mode 100644 dev-python/numexpr/metadata.xml create mode 100644 dev-python/numexpr/numexpr-2.9.0.ebuild diff --git a/README.md b/README.md index d578da15e..348f6b30c 100644 --- a/README.md +++ b/README.md @@ -606,11 +606,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 2333 Ebuilds in total, 2319 of them have in total 2358 (43 different) licenses assigned. +There are 2334 Ebuilds in total, 2320 of them have in total 2359 (43 different) licenses assigned. |License| Ebuilds using it| |-------|-----| -|MIT|1325| +|MIT|1326| |Apache-2.0|551| |GPL-3|145| |BSD|123| diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest new file mode 100644 index 000000000..ba01b3cfe --- /dev/null +++ b/dev-python/numexpr/Manifest @@ -0,0 +1,3 @@ +DIST numexpr-2.9.0.gh.tar.gz 118463 BLAKE2B 04904a6faaff713b9775dc3601fcfc963b9bea5bc24e1d2ca21f0123d7dca8d088abef9b8da09195e9bf9fb6a4ff3b2bee0f75dbc5b40e174803cb726d8b1f31 SHA512 9d7319a872228faea845fbc8c2b85b5f9e941eb2e1308711835bdba37fce65543a23ad483b92e28c33b3eb341f2f7d75b760a0827ae63782fac573a65efdedb0 +EBUILD numexpr-2.9.0.ebuild 962 BLAKE2B 419b4ec9b5ba9d85301f0d16de5b1c31d24274afaf20e27d1bedc1244391ad20034974825a209e183169c7a70be08738bee390f82de8198e188fd68db5dd5c4f SHA512 cbd7b90774916648a14be3cb86c4705122dff29369e683f3fe110e8564d1337750c47f77c27a8ae9968b1a3e51f78b47ffc6085bba058a3cebf708a3e1322036 +MISC metadata.xml 513 BLAKE2B ff302715ecd972260efb4ed3b67c56c0cd55c052412238bec2133bd23eebdbcfb331c2379943c5486dbda1237af58d839420d96a687b798c1a138ad8ccb5fb0a SHA512 3fe0aac4d70e012d67398928aa6ffafb73eff14d76d26f35b7167e9ff341a707786fc026fd49441e8872fcd523c4a82bd43bade344e258a0231b96ff891034dd diff --git a/dev-python/numexpr/metadata.xml b/dev-python/numexpr/metadata.xml new file mode 100644 index 000000000..cc7649108 --- /dev/null +++ b/dev-python/numexpr/metadata.xml @@ -0,0 +1,16 @@ + + + + + b@edevau.net + Andreas Billmeier + + + numexpr + pydata/numexpr + + blosc@blosc.org + Blosc Development Team + + + diff --git a/dev-python/numexpr/numexpr-2.9.0.ebuild b/dev-python/numexpr/numexpr-2.9.0.ebuild new file mode 100644 index 000000000..54f6a28a0 --- /dev/null +++ b/dev-python/numexpr/numexpr-2.9.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy" +HOMEPAGE=" + https://github.com/pydata/numexpr/ + https://pypi.org/project/numexpr/ +" +SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" + +DEPEND=" + =dev-python/numpy-1.13.3[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + dev-python/packaging[${PYTHON_USEDEP}] +" + +python_test() { + pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die + "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}" + import sys,numexpr + sys.exit(0 if numexpr.test().wasSuccessful() else 1) + EOF + pushd >/dev/null || die +}