New package: uv-0.1.21

This commit is contained in:
classabbyamp 2024-02-16 07:27:27 -05:00 committed by classabbyamp
parent 5cec1718aa
commit edddc0dd57
1 changed files with 31 additions and 0 deletions

31
srcpkgs/uv/template Normal file
View File

@ -0,0 +1,31 @@
# Template file for 'uv'
pkgname=uv
version=0.1.21
revision=1
build_style=python3-pep517
build_helper="rust qemu"
hostmakedepends="maturin cargo cmake pkg-config"
makedepends="rust-std openssl-devel libgit2-devel libssh2-devel zlib-devel"
short_desc="Extremely fast Python package installer and resolver"
maintainer="classabbyamp <void@placeviolette.net>"
license="Apache-2.0, MIT"
homepage="https://github.com/astral-sh/uv"
changelog="https://github.com/astral-sh/uv/raw/main/CHANGELOG.md"
distfiles="https://github.com/astral-sh/uv/releases/download/${version}/source.tar.gz"
checksum=eae4d4641e57ef2eec75d9f76653b8a3a0dc0b91b3dcc8fbbb2ce4456a08fcfe
# many tests require old python versions
make_check=no
post_patch() {
# Downgrade to use system libgit2 1.6
vsed -i 's/git2 =.*"0.18.1".*/git2 = "0.17.2"/' Cargo.toml
cargo update --package git2@0.18.2 --precise 0.17.2
}
post_install() {
vlicense LICENSE-MIT
for sh in bash fish zsh; do
vtargetrun "$DESTDIR"/usr/bin/uv --generate-shell-completion "$sh" > "uv.$sh"
vcompletion "uv.$sh" "$sh"
done
}