mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +02:00
dev-python/nspektr: Add from Gentoo
It's from Gentoo commit ad04b8e6d0e1c17bb879f74200c6a88754a034b0. It's a dependency of dev-python/setuptools.
This commit is contained in:
parent
9004a3eadf
commit
d4b869b732
1
sdk_container/src/third_party/portage-stable/dev-python/nspektr/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/dev-python/nspektr/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST nspektr-0.3.0.tar.gz 6314 BLAKE2B cb7b9b5b35a455d4e72e78d93db49b4f8e274c7d7a6c8bf7ccca52cce2598a937d31b76f1a30c4aa6d673e4ce52c4645ce7392965df35b0888d1c69226e08f00 SHA512 6fc22ad7858858f3b956ba5918ca92468f13d4b7db0e4861b836e63153f7e4319c6468e4f73969ce3fb7845ca8d97808b9db2eb2705a47fe1a8c4c19b9c2ef33
|
11
sdk_container/src/third_party/portage-stable/dev-python/nspektr/metadata.xml
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/dev-python/nspektr/metadata.xml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jaraco/nspektr</remote-id>
|
||||
<remote-id type="pypi">nspektr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
67
sdk_container/src/third_party/portage-stable/dev-python/nspektr/nspektr-0.3.0.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/dev-python/nspektr/nspektr-0.3.0.ebuild
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Distribution package dependency inspector"
|
||||
HOMEPAGE="
|
||||
https://github.com/jaraco/nspektr/
|
||||
https://pypi.org/project/nspektr/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/jaraco/nspektr/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/jaraco-context-4.1.1-r2[${PYTHON_USEDEP}]
|
||||
>=dev-python/jaraco-functools-3.5.0-r2[${PYTHON_USEDEP}]
|
||||
>=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/importlib_metadata-4.11.2[${PYTHON_USEDEP}]
|
||||
' 3.8 3.9)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# avoid unnecessary test dep on pip
|
||||
sed -i -e 's:pip:pytest:' nspektr/__init__.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
grep -q 'build-backend = "setuptools' pyproject.toml ||
|
||||
die "Upstream changed build-backend, recheck"
|
||||
# write a custom pyproject.toml to ease setuptools bootstrap
|
||||
cat > pyproject.toml <<-EOF || die
|
||||
[build-system]
|
||||
requires = ["flit_core >=3.2,<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
|
||||
[project]
|
||||
name = "nspektr"
|
||||
version = "${PV}"
|
||||
description = "package inspector"
|
||||
|
||||
# tests inspect itself
|
||||
[project.optional-dependencies]
|
||||
docs = [
|
||||
"fake-nonexisting",
|
||||
]
|
||||
testing = [
|
||||
"pytest",
|
||||
]
|
||||
EOF
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user