2022-04-19 23:24:47 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-orjson
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-09 21:06:49 +02:00
|
|
|
PYTHON_ORJSON_VERSION = 3.6.8
|
2022-04-19 23:24:47 +02:00
|
|
|
PYTHON_ORJSON_SITE = $(call github,ijl,orjson,$(PYTHON_ORJSON_VERSION))
|
2022-07-24 10:29:28 +02:00
|
|
|
PYTHON_ORJSON_SETUP_TYPE = pep517
|
2022-04-19 23:24:47 +02:00
|
|
|
PYTHON_ORJSON_LICENSE = Apache-2.0 or MIT
|
|
|
|
PYTHON_ORJSON_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
|
2022-07-24 10:29:28 +02:00
|
|
|
PYTHON_ORJSON_DEPENDENCIES = host-python-cffi host-python-maturin
|
|
|
|
PYTHON_ORJSON_ENV = \
|
|
|
|
$(PKG_CARGO_ENV) \
|
2022-04-19 23:24:47 +02:00
|
|
|
PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
|
2022-07-24 10:29:28 +02:00
|
|
|
# We need to vendor the Cargo crates at download time
|
|
|
|
PYTHON_ORJSON_DOWNLOAD_POST_PROCESS = cargo
|
|
|
|
PYTHON_ORJSON_DOWNLOAD_DEPENDENCIES = host-rustc
|
|
|
|
PYTHON_ORJSON_DL_ENV = $(PKG_CARGO_ENV)
|
2022-04-19 23:24:47 +02:00
|
|
|
|
2022-07-24 10:29:28 +02:00
|
|
|
$(eval $(python-package))
|