diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-11-21 12:34:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-21 12:34:08 +0800 |
| commit | f5ebf9fafe8da7178aa5c3303da63d873773ccc7 (patch) | |
| tree | b5fa9911d63f1e8da37dec2f0776f65062aa9de9 /lang/python/python-orjson/Makefile | |
| parent | 9b130e4b342d12918dbc535d515dbbfc7676bd74 (diff) | |
| parent | 96ce3b51a40ef1aa98843d6ebf1f6370e87197f8 (diff) | |
Merge pull request #22625 from ecammit/python_requirements_for_homeassistant
Added python-fnv-hash-fast, python-lru-dict, and python-orjson
Diffstat (limited to 'lang/python/python-orjson/Makefile')
| -rw-r--r-- | lang/python/python-orjson/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lang/python/python-orjson/Makefile b/lang/python/python-orjson/Makefile new file mode 100644 index 000000000..39ef2cf52 --- /dev/null +++ b/lang/python/python-orjson/Makefile @@ -0,0 +1,37 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-orjson +PKG_VERSION:=3.9.10 +PKG_RELEASE:=1 + +PYPI_NAME:=orjson +PKG_HASH:=9ebbdbd6a046c304b1845e96fbcc5559cd296b4dfd3ad2509e33c4d9ce07d6a1 + +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)) |
