mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 02:51:22 +00:00
Relevant changes since previous 3.9.13: - FIXED: Fix crash serializing str introduced in 3.9.11 - FIXED: Implement recursion limit of 1024 on orjson.loads() - FIXED: Use byte-exact read on str formatting SIMD path to avoid crash - Build now depends on Rust 1.72 or later - Support serializing numpy.float16 (numpy.half) - sdist uses metadata 2.3 instead of 2.1 - Improve Windows PyPI builds Signed-off-by: Timothy M. Ace <openwrt@timothyace.com>
38 lines
923 B
Makefile
38 lines
923 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-orjson
|
|
PKG_VERSION:=3.10.0
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=orjson
|
|
PKG_HASH:=ba4d8cac5f2e2cff36bea6b6481cdb92b38c202bcec603d6f5ff91960595a1ed
|
|
|
|
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))
|