b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2019-2020 CZ.NIC z.s.p.o. (http://www.nic.cz/) |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=python-wcwidth |
| 12 | PKG_VERSION:=0.2.6 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PYPI_NAME:=wcwidth |
| 16 | PKG_HASH:=a5220780a404dbe3353789870978e472cfe477761f06ee55077256e509b156d0 |
| 17 | |
| 18 | PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com> |
| 19 | PKG_LICENSE:=MIT |
| 20 | PKG_LICENSE_FILES:=LICENSE |
| 21 | |
| 22 | include ../pypi.mk |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | include ../python3-package.mk |
| 25 | |
| 26 | define Package/python3-wcwidth |
| 27 | SECTION:=lang |
| 28 | CATEGORY:=Languages |
| 29 | SUBMENU:=Python |
| 30 | TITLE:=Terminal width calculation library |
| 31 | URL:=https://github.com/jquast/wcwidth |
| 32 | DEPENDS:=+python3-light |
| 33 | endef |
| 34 | |
| 35 | define Package/python3-wcwidth/description |
| 36 | Python library that measures the width of unicode strings rendered to a |
| 37 | terminal |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call Py3Package,python3-wcwidth)) |
| 41 | $(eval $(call BuildPackage,python3-wcwidth)) |
| 42 | $(eval $(call BuildPackage,python3-wcwidth-src)) |