summaryrefslogtreecommitdiff
path: root/lang/python/python-lru-dict
diff options
context:
space:
mode:
authorTimothy M. Ace <openwrt@timothyace.com>2023-11-16 09:36:43 -0500
committerTimothy M. Ace <openwrt@timothyace.com>2023-11-20 09:58:32 -0500
commitcbae8db987d8abc5af3da7b3c1901650b14012b3 (patch)
tree4fa8582e549971d0b14490141d216faac0070b3f /lang/python/python-lru-dict
parentf0f38827376fe24f2e5745c5952f3abe598598b7 (diff)
python-lru-dict: Added for v1.3.0
Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
Diffstat (limited to 'lang/python/python-lru-dict')
-rw-r--r--lang/python/python-lru-dict/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/lang/python/python-lru-dict/Makefile b/lang/python/python-lru-dict/Makefile
new file mode 100644
index 000000000..a5171d6e0
--- /dev/null
+++ b/lang/python/python-lru-dict/Makefile
@@ -0,0 +1,37 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-lru-dict
+PKG_VERSION:=1.3.0
+PKG_RELEASE:=1
+
+PYPI_NAME:=lru-dict
+PKG_HASH:=54fd1966d6bd1fcde781596cb86068214edeebff1db13a2cea11079e3fd07b6b
+
+PKG_MAINTAINER:=Timothy Ace <openwrt@timothyace.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-lru-dict
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=An Dict like LRU container
+ URL:=https://github.com/amitdev/lru-dict
+ DEPENDS:=+python3-light
+endef
+
+define Package/python3-lru-dict/description
+A fixed size dict like container which evicts Least Recently Used (LRU) items
+once size limit is exceeded. There are many python implementations available
+which does similar things. This is a fast and efficient C implementation. LRU
+maximum capacity can be modified at run-time. If you are looking for pure
+python version, look elsewhere.
+endef
+
+$(eval $(call Py3Package,python3-lru-dict))
+$(eval $(call BuildPackage,python3-lru-dict))
+$(eval $(call BuildPackage,python3-lru-dict-src))