python-contextlib2: add package
authorKarel Kočí <redacted>
Sun, 10 Mar 2019 08:56:13 +0000 (09:56 +0100)
committerKarel Kočí <redacted>
Mon, 11 Mar 2019 16:21:31 +0000 (17:21 +0100)
Signed-off-by: Karel Kočí <redacted>
lang/python/python-contextlib2/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-contextlib2/Makefile b/lang/python/python-contextlib2/Makefile
new file mode 100644 (file)
index 0000000..c1c0ba9
--- /dev/null
@@ -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))
git clone https://git.99rst.org/PROJECT