# Copyright 2024-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CRATES=" " RUST_MIN_VER="1.97.0" inherit cargo check-reqs CRATE_PV=${PV} DESCRIPTION="A Python package installer and resolver, written in Rust" HOMEPAGE=" https://github.com/astral-sh/uv/ https://pypi.org/project/uv/ " # pypi sdist misses scripts/, needed for tests SRC_URI=" https://github.com/astral-sh/uv/archive/${PV}.tar.gz -> ${P}.gh.tar.gz ${CARGO_CRATE_URIS} " if [[ ${PKGBUMPING} != ${PVR} ]]; then SRC_URI+=" https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz " fi # most of the code LICENSE="|| ( Apache-2.0 MIT )" # crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below # Dependent crate licenses LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB " # ring crate LICENSE+=" openssl" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" IUSE="test" RESTRICT="test" PROPERTIES="test_network" DEPEND=" app-arch/bzip2:= app-arch/xz-utils:= app-arch/zstd:= " RDEPEND=" ${DEPEND} " # git/curl: https://bugs.gentoo.org/984287 BDEPEND=" virtual/pkgconfig test? ( dev-lang/python:3.9 dev-lang/python:3.10 dev-lang/python:3.11 dev-lang/python:3.12 dev-lang/python:3.13 !!~dev-python/uv-0.5.0 || ( >=dev-vcs/git-2.57