mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-pydantic-core: rebuild for python3-3.13
This commit is contained in:
parent
5fb5cffd78
commit
eea4ed6b9d
1 changed files with 6 additions and 13 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'python3-pydantic-core'
|
# Template file for 'python3-pydantic-core'
|
||||||
pkgname=python3-pydantic-core
|
pkgname=python3-pydantic-core
|
||||||
version=2.21.0
|
version=2.21.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
build_helper=rust
|
build_helper="rust"
|
||||||
hostmakedepends="maturin cargo"
|
hostmakedepends="maturin cargo python3-typing_extensions"
|
||||||
makedepends="python3-typing_extensions"
|
makedepends="rust-std python3-devel"
|
||||||
depends="python3-typing_extensions"
|
depends="python3-typing_extensions"
|
||||||
checkdepends="${depends} python3-pytest python3-pytest-benchmark
|
checkdepends="${depends} python3-pytest python3-pytest-benchmark
|
||||||
python3-pytest-timeout python3-pytest-mock python3-hypothesis
|
python3-pytest-timeout python3-pytest-mock python3-hypothesis
|
||||||
|
@ -18,16 +18,9 @@ changelog="https://github.com/pydantic/pydantic-core/releases"
|
||||||
distfiles="${PYPI_SITE}/p/pydantic_core/pydantic_core-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pydantic_core/pydantic_core-${version}.tar.gz"
|
||||||
checksum=79c747f9916e5b6cb588dfd994d9ac15a93e43eb07467d9e6f24d892c176bbf5
|
checksum=79c747f9916e5b6cb588dfd994d9ac15a93e43eb07467d9e6f24d892c176bbf5
|
||||||
|
|
||||||
# taken from python3-adblock
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
makedepends+=" rust-std"
|
|
||||||
hostmakedepends+=" python3-typing_extensions"
|
|
||||||
export PYO3_CROSS_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib"
|
|
||||||
export PYO3_CROSS_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
|
|
||||||
fi
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
maturin build -o . --release --target "${RUST_TARGET}" --manylinux off
|
maturin build -i /usr/bin/python3 -o . \
|
||||||
|
--release --target "${RUST_TARGET}" --manylinux off
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
mv pydantic_core-${version}-*.whl dist/pydantic_core-${version}-py3-none-any.whl
|
mv pydantic_core-${version}-*.whl dist/pydantic_core-${version}-py3-none-any.whl
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue