summaryrefslogtreecommitdiff
path: root/dev-python/memory-allocator
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/memory-allocator')
-rw-r--r--dev-python/memory-allocator/Manifest2
-rw-r--r--dev-python/memory-allocator/memory-allocator-0.2.1.ebuild36
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/memory-allocator/Manifest b/dev-python/memory-allocator/Manifest
index 3441e0e395f2..8a865003568d 100644
--- a/dev-python/memory-allocator/Manifest
+++ b/dev-python/memory-allocator/Manifest
@@ -1,2 +1,4 @@
DIST memory_allocator-0.2.0.tar.gz 22165 BLAKE2B ae49ff6893f4202214823dd5b1bdb0dc14f7dd4a5750f5a537770c0ecb879b6abdcad9bd0c4b1e0ed460b9d17542d6d2bb38936632a3e0db683d7896179a9981 SHA512 5c7dcedc347027f4918763ba5312f7994f90aff61fd44f17f1850f86f3aa0bb08d49fddadfb6555c08c52ac9c346e10c140dde3653f9c17c85dbea436ebeec13
DIST memory_allocator-0.2.0.tar.gz.provenance 9501 BLAKE2B 0ef75267c5868b5b764a52d49b889772245bf276a32dfc4331f9f5efe70db703b964a0b6b2b504c32f76349ce40aaa64f99c466f79397e1aaa0bed9dbe348434 SHA512 15e92d597015c33ed093cfa4b21445d59aeac8e7321162f89975fd45f6d6dbceb721aa11203bc1f5db4b9609f7e83bacc02676249b19672ff5ab8987628e94f4
+DIST memory_allocator-0.2.1.tar.gz 33501 BLAKE2B 1707d1192d298d4ec9be0eaf7c56fc197c09c00fa56218fd14d41eacfa3caae4b64d908498d13ec70b18b8660a9ca7bc270d625ec7dd4d8ba5eec0f2937110aa SHA512 e9455289b9184b14a9d3ea97e35f64bfb9368151a021db8b1a9190bc864fb1f8176ba2588b56f0c0f60d4667f3707b7f25542f6f02556ff125ca496926e4e4bb
+DIST memory_allocator-0.2.1.tar.gz.provenance 9855 BLAKE2B dc275089667f4bc1aabb4b74199ccdfda3c95b8be9b087b00f3e6f0da2881480623a7fe5a4f30b97bd9f202b8ffbb07cc0739f1392fa8313099a53101f3d72cb SHA512 942a135b63bfeee0b2558cb97c6406420efa95ce5199a428ee1194025e6f7665488fd98f65c807ba5c6c5b8f64d4c2fcc609a8193e511342a1e9749127ad131c
diff --git a/dev-python/memory-allocator/memory-allocator-0.2.1.ebuild b/dev-python/memory-allocator/memory-allocator-0.2.1.ebuild
new file mode 100644
index 000000000000..767e6b89b6ec
--- /dev/null
+++ b/dev-python/memory-allocator/memory-allocator-0.2.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2021-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=meson-python
+PYPI_VERIFY_REPO=https://github.com/sagemath/memory_allocator
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="An extension class for memory allocation in cython"
+HOMEPAGE="
+ https://pypi.org/project/memory-allocator/
+ https://github.com/sagemath/memory_allocator/
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ # The test script tries to "import memory_allocator.test" which, so
+ # long as a memory_allocator directory exists inside CWD, will look
+ # for a memory_allocator/test.py there. But there is no such file;
+ # the "test" module is a compiled extension. To let the search fall
+ # back to the correct location, we temporarily rename the directory
+ # that misleads it.
+ rm -rf memory_allocator || die
+ "${EPYTHON}" test.py || die
+}