summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorJosef Schlehofer <pepe.schlehofer@gmail.com>2021-09-07 13:34:04 +0200
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2021-09-15 12:15:52 +0200
commitef3a04b8865ce38fb385c6b7577a718cd7103d90 (patch)
tree722184d88a04cbd115e10654ab5bd4abe6c6c708 /lang/python
parent62cc627aba9b9aa1ac7b54ac5471b6f97e3f4ba3 (diff)
python-awesomeversion: add it to the repository
This package is dependency for Home Assistant Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python-awesomeversion/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lang/python/python-awesomeversion/Makefile b/lang/python/python-awesomeversion/Makefile
new file mode 100644
index 000000000..73fc231eb
--- /dev/null
+++ b/lang/python/python-awesomeversion/Makefile
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2021 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-awesomeversion
+PKG_VERSION:=21.8.1
+PKG_RELEASE:=$(AUTORELEASE)
+
+PYPI_NAME:=awesomeversion
+PKG_HASH:=a72f3fff12df257e30f5e25a8550fc4da62e7591d5fdb70714f5c96827c37645
+
+PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENCE.md
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-awesomeversion
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=AwesomeVersion
+ URL:=https://github.com/ludeeus/awesomeversion
+ DEPENDS:= \
+ +python3-light \
+ +python3-logging
+endef
+
+define Package/python3-awesomeversion/description
+ Make anything a version object, and compare against a vast selection of other version formats.
+endef
+
+$(eval $(call Py3Package,python3-awesomeversion))
+$(eval $(call BuildPackage,python3-awesomeversion))
+$(eval $(call BuildPackage,python3-awesomeversion-src))