mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

This is related to checksum verification introduction in bitbake crate fetcher: https://patchwork.yoctoproject.org/project/bitbake/patch/20230315131513.50635-1-frederic.martinsons@gmail.com/ Moreover, drop the usage of pypi to use git fetcher (the Cargo.lock file is not present in the package uploaded on pypi) Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
47 lines
2.0 KiB
BlitzBasic
47 lines
2.0 KiB
BlitzBasic
SUMMARY = "WSGI server implemented in Rust."
|
|
DESCRIPTION = "Pyruvate is a reasonably fast, multithreaded, non-blocking \
|
|
WSGI server implemented in Rust."
|
|
HOMEPAGE = "https://gitlab.com/tschorr/pyruvate"
|
|
BUGTRACKER = "https://gitlab.com/tschorr/pyruvate/-/issues"
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=051b48e640a6e2d795eac75542d9417c \
|
|
file://LICENSE.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
SRC_URI += "\
|
|
git://gitlab.com/tschorr/pyruvate.git;protocol=https;branch=main \
|
|
file://0001-linux.rs-Define-consts-for-rv32-architecture.patch;patchdir=../cargo_home/bitbake/nix-0.23.1/ \
|
|
"
|
|
SRC_URI[sha256sum] = "10befedd97e73fc18b902d02aa3b24e8978aa162242c1b664849c886c0675899"
|
|
SRCREV = "fcbe49cc1a06290e28a211022df759605bce980d"
|
|
|
|
SRC_URI:append:mips = " file://0001-check-for-mips-targets-for-stat.st_dev-definitions.patch;patchdir=../cargo_home/bitbake/libsystemd-0.4.1/"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit python_setuptools3_rust cargo-update-recipe-crates
|
|
|
|
PIP_INSTALL_DIST_PATH = "${S}/dist"
|
|
|
|
# crossbeam-* -> std::sync::atomic AtomicI64, AtomicU64
|
|
# not supported on mips/powerpc with 32-bit pointers
|
|
# https://doc.rust-lang.org/std/sync/atomic/#portability
|
|
RUSTFLAGS:append:mips = " --cfg crossbeam_no_atomic_64"
|
|
RUSTFLAGS:append:mipsel = " --cfg crossbeam_no_atomic_64"
|
|
RUSTFLAGS:append:powerpc = " --cfg crossbeam_no_atomic_64"
|
|
RUSTFLAGS:append:riscv32 = " --cfg crossbeam_no_atomic_64"
|
|
|
|
require ${BPN}-crates.inc
|
|
|
|
# The following configs & dependencies are from setuptools extras_require.
|
|
# These dependencies are optional, hence can be controlled via PACKAGECONFIG.
|
|
# The upstream names may not correspond exactly to bitbake package names.
|
|
#
|
|
# Uncomment this line to enable all the optional features.
|
|
#PACKAGECONFIG ?= "test"
|
|
PACKAGECONFIG[test] = ",,,python3-pytest python3-requests"
|
|
|
|
# WARNING: the following rdepends are determined through basic analysis of the
|
|
# python sources, and might not be 100% accurate.
|
|
RDEPENDS:${PN} += "python3-core"
|