0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 03:41:44 +00:00
Timothy M. Ace d2f034caf2 python-orjson: update to version 3.10.12
Relevant changes since previous 3.10.0:
- FIXED: Serializing numpy.ndarray with non-native endianness raises orjson.JSONEncodeError.
- FIXED: Fix int serialization on 32-bit Python 3.8, 3.9, 3.10. This was introduced in 3.10.8.
- Improve performance of serializing.
- Drop support for arm7.
- int serialization no longer chains OverflowError to the the __cause__ attribute of orjson.JSONEncodeError when range exceeded.

Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
2024-12-11 18:55:52 +02:00

38 lines
924 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=python-orjson
PKG_VERSION:=3.10.12
PKG_RELEASE:=1
PYPI_NAME:=orjson
PKG_HASH:=0a78bbda3aea0f9f079057ee1ee8a1ecf790d4f1af88dd67493c6b8ee52506ff
PKG_MAINTAINER:=Timothy Ace <openwrt@timothyace.com>
PKG_LICENSE:=Apache-2.0 MIT
PKG_LICENSE_FILES:=LICENSE-APACHE LICENSE-MIT
PKG_BUILD_DEPENDS:=python-maturin/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-orjson
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Fast, correct Python JSON library
URL:=https://github.com/ijl/orjson
DEPENDS:= \
+python3-light \
$(RUST_ARCH_DEPENDS)
endef
define Package/python3-orjson/description
Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
endef
$(eval $(call Py3Package,python3-orjson))
$(eval $(call BuildPackage,python3-orjson))
$(eval $(call BuildPackage,python3-orjson-src))