diff options
author | 2023-01-27 21:05:15 +0100 | |
---|---|---|
committer | 2023-01-27 21:09:11 +0100 | |
commit | 180780d3c13bae2d513f414eef3cc69c1db73afd (patch) | |
tree | 9daf11a399bb4686e0fdf6071a9e517716291427 /dev-python/blake3-py-c | |
parent | dev-python/blake3-py: Remove old (diff) | |
download | gentoo-180780d3c13bae2d513f414eef3cc69c1db73afd.tar.gz gentoo-180780d3c13bae2d513f414eef3cc69c1db73afd.tar.bz2 gentoo-180780d3c13bae2d513f414eef3cc69c1db73afd.zip |
dev-python/blake3-py-c: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/blake3-py-c')
-rw-r--r-- | dev-python/blake3-py-c/Manifest | 2 | ||||
-rw-r--r-- | dev-python/blake3-py-c/blake3-py-c-0.3.1.ebuild | 42 | ||||
-rw-r--r-- | dev-python/blake3-py-c/blake3-py-c-0.3.2.ebuild | 38 | ||||
-rw-r--r-- | dev-python/blake3-py-c/files/blake3-py-c-0.3.1-backports.patch | 73 |
4 files changed, 0 insertions, 155 deletions
diff --git a/dev-python/blake3-py-c/Manifest b/dev-python/blake3-py-c/Manifest index 4b91e51abc61..171df0d13c35 100644 --- a/dev-python/blake3-py-c/Manifest +++ b/dev-python/blake3-py-c/Manifest @@ -1,3 +1 @@ -DIST blake3-py-0.3.1.gh.tar.gz 131798 BLAKE2B 6c816bab8d1e432453d4d40f4acc4d33bb45d305a2ab8458dded72bfee6ffd687a016d257dad4c2d656ddd5d765e5ad450e18fdd4af084a51f1973ce56daea68 SHA512 d3901339df9dc3409f8c2407c6f4f02fb9e13e8e7a76d77c06d9f58c6cceea4829cedf71a687fdded8ad70897d3a4833f2b124f39837b0ffa5fb8b907b51fd56 -DIST blake3-py-0.3.2.gh.tar.gz 114679 BLAKE2B cf7b6013874c28f2df0ec8c9fb5dc46aa50f2962b80d4d57a087545c915fd490cd11592ca94784ec8a8b9e12380343c2dec1c64afe44eeb8de3f1471678f964b SHA512 695044b108225807eef3016dd8e744c39bff4911a3071e346a4b148a3ba0894f2feef59b7537925cd73acebf6744f3cf8d1161f8d1f801dfd47cb670241b9dea DIST blake3-py-0.3.3.gh.tar.gz 114409 BLAKE2B 7514697e2fe58623000dcf457ca5a197b98ca6606e5463b4afb455e36ada3a66865f297272f9e8cde49537442cf5491a7673d64696cba617e085222040b5af66 SHA512 155d8165792935176bf9484b42d6caa715b3c6ff36d266be4d8334fc17a2fdd4a85c5c2c3d53285f21166232a8e558fe9340a8db2bd98ef01d0358809ed28dfb diff --git a/dev-python/blake3-py-c/blake3-py-c-0.3.1.ebuild b/dev-python/blake3-py-c/blake3-py-c-0.3.1.ebuild deleted file mode 100644 index 5d53b58f317b..000000000000 --- a/dev-python/blake3-py-c/blake3-py-c-0.3.1.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 - -MY_P=${P/-c} -DESCRIPTION="Python bindings for the BLAKE3 cryptographic hash function" -HOMEPAGE="https://github.com/oconnor663/blake3-py/" -SRC_URI=" - https://github.com/oconnor663/blake3-py/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P}/c_impl - -LICENSE="|| ( CC0-1.0 Apache-2.0 )" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - !dev-python/blake3-py[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}"/${P}-backports.patch -) - -python_test() { - cd .. || die - epytest -} diff --git a/dev-python/blake3-py-c/blake3-py-c-0.3.2.ebuild b/dev-python/blake3-py-c/blake3-py-c-0.3.2.ebuild deleted file mode 100644 index 860470324d40..000000000000 --- a/dev-python/blake3-py-c/blake3-py-c-0.3.2.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 - -MY_P=${P/-c} -DESCRIPTION="Python bindings for the BLAKE3 cryptographic hash function" -HOMEPAGE="https://github.com/oconnor663/blake3-py/" -SRC_URI=" - https://github.com/oconnor663/blake3-py/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P}/c_impl - -LICENSE="|| ( CC0-1.0 Apache-2.0 )" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - !dev-python/blake3-py[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - cd .. || die - epytest -} diff --git a/dev-python/blake3-py-c/files/blake3-py-c-0.3.1-backports.patch b/dev-python/blake3-py-c/files/blake3-py-c-0.3.1-backports.patch deleted file mode 100644 index 0c36aaa5ff21..000000000000 --- a/dev-python/blake3-py-c/files/blake3-py-c-0.3.1-backports.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 0d7526621087fd016d4ab5d34abfb35c715ec0cd Mon Sep 17 00:00:00 2001 -From: Thomas Waldmann <tw@waldmann-edv.de> -Date: Tue, 29 Mar 2022 17:31:02 +0200 -Subject: [PATCH] c_impl: compatibility fix for python < 3.10 - ---- - blake3module.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/blake3module.c b/blake3module.c -index f4160fb..0fce6ad 100644 ---- a/blake3module.c -+++ b/blake3module.c -@@ -414,7 +414,8 @@ PyMODINIT_FUNC PyInit_blake3(void) { - goto exit; - } - -- if (PyModule_AddObjectRef(module, "blake3", (PyObject *)&Blake3Type) < 0) { -+ if (PyModule_AddObject(module, "blake3", (PyObject *)&Blake3Type) < 0) { -+ Py_DECREF((PyObject *)&Blake3Type); - goto exit; - } - -From 52676a355eccfb0050b372cd36a14ab49878e8b3 Mon Sep 17 00:00:00 2001 -From: Thomas Waldmann <tw@waldmann-edv.de> -Date: Tue, 29 Mar 2022 18:18:46 +0200 -Subject: [PATCH] c_impl: apple silicon build fix, fixes #31 - -On Apple Silicon (M1 CPU), the platform.machine() call returns "arm64". ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index a159d8b..863c7ea 100644 ---- a/setup.py -+++ b/setup.py -@@ -66,7 +66,7 @@ def targeting_x86_32(): - - - def is_aarch64(): -- return platform.machine().lower() == "aarch64" -+ return platform.machine().lower() in ("aarch64", "arm64") - - - def force_intrinsics(): -From 5eac8ae62d8f4e0a574164b73c42837ddc6ff356 Mon Sep 17 00:00:00 2001 -From: Thomas Waldmann <tw@waldmann-edv.de> -Date: Tue, 29 Mar 2022 20:30:30 +0200 -Subject: [PATCH] c_impl: fix usedforsecurity argument variable type, fixes #34 - -the python docs state that this must be int (not: bool). - -as seen in #34, using the wrong type here seems to overflow the variable -and leads to a wrong value in max_threads, which leads to that strange -test failure. ---- - blake3module.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/blake3module.c b/blake3module.c -index 0fce6ad..a9562cf 100644 ---- a/blake3module.c -+++ b/blake3module.c -@@ -53,7 +53,7 @@ static PyObject *Blake3_new(PyTypeObject *type, PyObject *args, - Py_buffer key = {0}; - const char *derive_key_context = NULL; - Py_ssize_t max_threads = 1; -- bool usedforsecurity = true; -+ int usedforsecurity = 1; - - PyObject *ret = NULL; - |