mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-27 19:57:58 -05:00
Closes: https://bugs.gentoo.org/974959 Closes: https://bugs.gentoo.org/974960 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
70 lines
1.6 KiB
Bash
70 lines
1.6 KiB
Bash
# Copyright 2025-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# Autogenerated by pycargoebuild 0.14.0
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{13..14} )
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
DISTUTILS_EXT=1
|
|
|
|
RUST_MIN_VER="1.97"
|
|
CRATES=""
|
|
|
|
inherit cargo distutils-r1
|
|
|
|
MY_PN="upstream-ontologist-py"
|
|
MY_P="${MY_PN}-${PV}"
|
|
DESCRIPTION="Tracking of upstream project metadata"
|
|
HOMEPAGE="
|
|
https://pypi.org/project/upstream-ontologist/
|
|
https://github.com/jelmer/upstream-ontologist-py
|
|
"
|
|
SRC_URI="https://github.com/jelmer/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.gh.tar.gz
|
|
https://github.com/sysrq-crate-dist/${MY_PN}/releases/download/v${PV}/${MY_P}-crates.tar.xz"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="Apache-2.0"
|
|
# Dependent crate licenses
|
|
LICENSE+="
|
|
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
|
|
GPL-2+ GPL-3 ISC MIT MPL-2.0 MPL-2.0 Unicode-3.0 ZLIB
|
|
"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
# NOTE: Some Python dependencies are found in obscure Rust crates
|
|
# running py.import_bound()
|
|
DEPEND="
|
|
app-arch/xz-utils
|
|
virtual/zlib:=
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
$(python_gen_cond_dep '
|
|
dev-python/python-debian[${PYTHON_USEDEP}]
|
|
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
')
|
|
>=dev-vcs/breezy-3.3.22[${PYTHON_SINGLE_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
$(python_gen_cond_dep '
|
|
dev-python/setuptools-rust[${PYTHON_USEDEP}]
|
|
')
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.2.2-no-debcargo.patch
|
|
)
|
|
|
|
QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/upstream_ontologist/_upstream_ontologist.*.so"
|
|
|
|
distutils_enable_tests unittest
|
|
|
|
pkg_setup() {
|
|
rust_pkg_setup
|
|
python-single-r1_pkg_setup
|
|
}
|