summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorJosef Schlehofer <pepe.schlehofer@gmail.com>2020-07-08 15:20:19 +0200
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2020-07-08 15:20:52 +0200
commit5aae605ceb4b5f3632a8176148bf28be74b0bb16 (patch)
treeacbaa92ca7b7d86cb34a1cfc092dbbc804f5255c /lang/python
parentf48625cbf960a76851af811c5a70b3dacccd1aea (diff)
python-ciso8601: introduce a new package for Home Assistant
Log: pkg_resources.DistributionNotFound: The 'ciso8601==2.1.3' distribution was not found and is required by homeassistant Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python-ciso8601/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lang/python/python-ciso8601/Makefile b/lang/python/python-ciso8601/Makefile
new file mode 100644
index 000000000..8f85088cf
--- /dev/null
+++ b/lang/python/python-ciso8601/Makefile
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-ciso8601
+PKG_VERSION:=2.1.3
+PKG_RELEASE:=1
+
+PYPI_NAME:=ciso8601
+PKG_HASH:=bdbb5b366058b1c87735603b23060962c439ac9be66f1ae91e8c7dbd7d59e262
+
+PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE.txt
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-ciso8601
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=Fast ISO8601 date time parser for Python written in C
+ URL:=https://github.com/closeio/ciso8601
+ DEPENDS:= \
+ +python3-light
+endef
+
+define Package/python3-ciso8601/description
+ ciso8601 converts ISO 8601 or RFC 3339 date time strings into Python datetime objects.
+endef
+
+$(eval $(call Py3Package,python3-ciso8601))
+$(eval $(call BuildPackage,python3-ciso8601))
+$(eval $(call BuildPackage,python3-ciso8601))
+