4dfa809c2c
And switch to PyPi to fetch the source code. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
23 lines
934 B
Makefile
23 lines
934 B
Makefile
################################################################################
|
|
#
|
|
# python-orjson
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_ORJSON_VERSION = 3.7.7
|
|
PYTHON_ORJSON_SOURCE = orjson-$(PYTHON_ORJSON_VERSION).tar.gz
|
|
PYTHON_ORJSON_SITE = https://files.pythonhosted.org/packages/8a/68/47bc5e624431d77445f06a2d3ba32777fda650f05a2f803ea1dc2b07b65a
|
|
PYTHON_ORJSON_SETUP_TYPE = pep517
|
|
PYTHON_ORJSON_LICENSE = Apache-2.0 or MIT
|
|
PYTHON_ORJSON_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
|
|
PYTHON_ORJSON_DEPENDENCIES = host-python-cffi host-python-maturin
|
|
PYTHON_ORJSON_ENV = \
|
|
$(PKG_CARGO_ENV) \
|
|
PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
|
|
# 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)
|
|
|
|
$(eval $(python-package))
|