Files
packages/lang/python/python-charset-normalizer/Makefile
T
Austin Lane eeb44829f3 python-charset-normalizer: update to 3.5.1
Adds support for setuptools 84.

chardet-normalizer has been broken since setuptools 84 was merged in
6211fee354

Signed-off-by: Austin Lane <vidplace7@gmail.com>
2026-08-31 09:20:56 +03:00

56 lines
1.5 KiB
Makefile

#
# Copyright (C) 2023 Jeffery To
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-charset-normalizer
PKG_VERSION:=3.5.1
PKG_RELEASE:=1
PYPI_NAME:=charset-normalizer
PYPI_SOURCE_NAME:=charset_normalizer
PKG_HASH:=6117b84ea48435e5356dc737f5121485c30920ba43375fa7b434fd753df0eac3
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
HOST_BUILD_DEPENDS:= \
python3/host \
python-build/host \
python-installer/host \
python-wheel/host \
python-setuptools/host
PKG_BUILD_DEPENDS:=python-setuptools/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk
define Package/python3-charset-normalizer
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Real First Universal Charset Detector
URL:=https://github.com/jawah/charset_normalizer
DEPENDS:=+python3-light +python3-codecs +python3-logging
endef
define Package/python3-charset-normalizer/description
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, I'm trying to resolve the issue by taking a new
approach. All IANA character set names for which the Python core library
provides codecs are supported.
endef
$(eval $(call Py3Package,python3-charset-normalizer))
$(eval $(call BuildPackage,python3-charset-normalizer))
$(eval $(call BuildPackage,python3-charset-normalizer-src))
$(eval $(call HostBuild))