b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=python-distro |
| 4 | PKG_VERSION:=1.9.0 |
| 5 | PKG_RELEASE:=1 |
| 6 | |
| 7 | PYPI_NAME:=distro |
| 8 | PKG_HASH:=2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed |
| 9 | |
| 10 | PKG_MAINTAINER:=Javier Marcet <javier@marcet.info> |
| 11 | PKG_LICENSE:=Apache-2.0 |
| 12 | PKG_LICENSE_FILES:=LICENSE |
| 13 | |
| 14 | include ../pypi.mk |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | include ../python3-package.mk |
| 17 | |
| 18 | define Package/python3-distro |
| 19 | SECTION:=lang |
| 20 | CATEGORY:=Languages |
| 21 | SUBMENU:=Python |
| 22 | TITLE:=OS platform information API |
| 23 | URL:=https://github.com/python-distro/distro |
| 24 | DEPENDS:=+python3-light +python3-logging |
| 25 | endef |
| 26 | |
| 27 | define Package/python3-distro/description |
| 28 | distro provides information about the OS distribution it runs on, such |
| 29 | as a reliable machine-readable ID, or version information. |
| 30 | endef |
| 31 | |
| 32 | $(eval $(call Py3Package,python3-distro)) |
| 33 | $(eval $(call BuildPackage,python3-distro)) |
| 34 | $(eval $(call BuildPackage,python3-distro-src)) |