python3-distro: add a new package
authorJavier Marcet <javier@marcet.info>
Mon, 8 Jun 2020 14:56:16 +0000 (16:56 +0200)
committerJavier Marcet <javier@marcet.info>
Mon, 8 Jun 2020 15:07:33 +0000 (17:07 +0200)
Signed-off-by: Javier Marcet <javier@marcet.info>
lang/python/python-distro/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-distro/Makefile b/lang/python/python-distro/Makefile
new file mode 100644 (file)
index 0000000..e33dc8e
--- /dev/null
@@ -0,0 +1,35 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-distro
+PKG_VERSION:=1.5.0
+PKG_RELEASE:=1
+
+PYPI_NAME:=distro
+PKG_HASH:=0e58756ae38fbd8fc3020d54badb8eae17c5b9dcbed388b17bb55b8a5928df92
+
+PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-distro
+  SECTION:=lang
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=Distro - an OS platform information API
+  URL:=https://github.com/nir0s/distro
+  DEPENDS:=+python3-light
+  VARIANT:=python3
+endef
+
+define Package/python3-distro/description
+  A much more elaborate, renewed alternative implementation for Python's
+  platform.linux_distribution()
+endef
+
+$(eval $(call Py3Package,python3-distro))
+$(eval $(call BuildPackage,python3-distro))
+$(eval $(call BuildPackage,python3-distro-src))