summaryrefslogtreecommitdiff
path: root/lang/python/python-contextlib2
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-03-10 09:56:13 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-03-11 17:21:31 +0100
commitc9f70feec304c6159d4afdbb6e391618d22238e3 (patch)
treed549872ce4981f47f14a9ee061388854d93d7ae9 /lang/python/python-contextlib2
parent1418f401b5791a8797e1aa7d45af5475b08db1ed (diff)
python-contextlib2: add package
Signed-off-by: Karel Kočí <cynerd@email.cz>
Diffstat (limited to 'lang/python/python-contextlib2')
-rw-r--r--lang/python/python-contextlib2/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/lang/python/python-contextlib2/Makefile b/lang/python/python-contextlib2/Makefile
new file mode 100644
index 000000000..c1c0ba9e9
--- /dev/null
+++ b/lang/python/python-contextlib2/Makefile
@@ -0,0 +1,36 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-contextlib2
+PKG_VERSION:=0.5.5
+PKG_RELEASE:=1
+PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
+
+PKG_SOURCE_URL:=https://pypi.python.org/packages/source/c/contextlib2/
+PKG_SOURCE:=contextlib2-$(PKG_VERSION).tar.gz
+PKG_HASH:=509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48
+PKG_BUILD_DIR:=$(BUILD_DIR)/contextlib2-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-contextlib2
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ URL:=http://contextlib2.readthedocs.org
+ TITLE:=python3-contextlib2
+ DEPENDS:=+python3-light
+ VARIANT:=python3
+endef
+
+define Package/python-contextlib2/description
+ contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions.
+endef
+
+$(eval $(call Py3Package,python3-contextlib2))
+$(eval $(call BuildPackage,python3-contextlib2))
+$(eval $(call BuildPackage,python3-contextlib2-src))