commit:     5656e421005531b8417cdbbe19bb31066fcf2c17
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Sun Dec 21 16:13:54 2025 +0000
Commit:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
CommitDate: Thu Dec 25 01:59:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5656e421

dev-util/nvchecker: Bump to 2.20

Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>

 dev-util/nvchecker/Manifest              |   1 +
 dev-util/nvchecker/nvchecker-2.20.ebuild | 107 +++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

diff --git a/dev-util/nvchecker/Manifest b/dev-util/nvchecker/Manifest
index 986d10ab78..565eaf5e7c 100644
--- a/dev-util/nvchecker/Manifest
+++ b/dev-util/nvchecker/Manifest
@@ -1 +1,2 @@
 DIST nvchecker-2.19.tar.gz 71397 BLAKE2B 
ef6e0c32dda54f681aadd8809ccb468313d9adefc4890d5b34721cf1d0aef87f34a604593a196547fac0dc14c0db9a3f4dcb0034f8d6a7296ea922c54b83188b
 SHA512 
7183eafd1fe893f6c43bf2c775ddc603b4340f76aee342c587a7b840611753e934338a45d03822ac44605a9127eee7bfbaa9494043c99e22aace847c64ae7f78
+DIST nvchecker-2.20.tar.gz 71423 BLAKE2B 
b9011813ab82ff9e44cd53fe952bd7690f9b3826ca97cc0649ad8ec1a1805b1e1eb3d92a1a05a2e1f33b45198377a42923196dec33552aa7c6d3c5f17422e521
 SHA512 
8093299f0128d385c5c617120b53e9a930b3ed4161519739282b82e76c5f54091bda5660f47ae64b7317ed8042b7d7664e464761896fbc54c3d1b92ca278d3c0

diff --git a/dev-util/nvchecker/nvchecker-2.20.ebuild 
b/dev-util/nvchecker/nvchecker-2.20.ebuild
new file mode 100644
index 0000000000..22411f5836
--- /dev/null
+++ b/dev-util/nvchecker/nvchecker-2.20.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 optfeature
+
+DESCRIPTION="New version checker for software releases"
+HOMEPAGE="https://github.com/lilydjwg/nvchecker/";
+
+SRC_URI="https://github.com/lilydjwg/nvchecker/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+PROPERTIES="test_network"
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/structlog[${PYTHON_USEDEP}]
+       || (
+               (
+                       dev-python/pycurl[${PYTHON_USEDEP}]
+                       dev-python/tornado[${PYTHON_USEDEP}]
+               )
+               dev-python/aiohttp[${PYTHON_USEDEP}]
+       )
+"
+BDEPEND="
+       test? (
+               dev-python/jq[${PYTHON_USEDEP}]
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+               dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep \
+                       'dev-python/zstandard[${PYTHON_USEDEP}]' 
python3_{11..13})
+               dev-vcs/git
+       )
+"
+
+# NOTE: The network-reliant tests are really flaky, as the various websites
+#       don't always respond consistently, or may have changed their response.
+
+EPYTEST_DESELECT=(
+       # Need missing python libraries
+       tests/test_sortversion.py::test_awesomeversion  # awesomeversion
+       tests/test_sortversion.py::test_vercmp  # pyalpm
+
+       # "requires makepkg command"
+       tests/test_alpm.py::test_alpm
+       tests/test_alpm.py::test_alpm_missing_pkg
+       tests/test_alpm.py::test_alpm_missing_provides
+       tests/test_alpm.py::test_alpm_missing_repo
+       tests/test_alpm.py::test_alpm_provided
+       tests/test_alpm.py::test_alpm_provided_strip
+       tests/test_alpm.py::test_alpm_strip
+
+       # "requires pacman command"
+       tests/test_alpmfiles.py::test_alpmfiles
+       tests/test_alpmfiles.py::test_alpmfiles_strip
+       tests/test_pacman.py::test_pacman
+       tests/test_pacman.py::test_pacman_strip_release
+
+       # "KEYFILE not set"
+       tests/test_github.py::test_github
+       tests/test_github.py::test_github_default_not_master
+       tests/test_github.py::test_github_latest_release
+       tests/test_github.py::test_github_latest_release_include_prereleases
+       tests/test_github.py::test_github_latest_tag
+       tests/test_github.py::test_github_max_release
+       tests/test_github.py::test_github_max_release_with_ignored
+       tests/test_github.py::test_github_max_release_with_include
+       tests/test_github.py::test_github_max_tag
+       tests/test_github.py::test_github_max_tag_with_ignored
+       tests/test_github.py::test_github_max_tag_with_include
+       tests/test_github.py::test_github_with_path
+       tests/test_github.py::test_github_with_path_and_branch
+
+       # "unconditional skip"
+       tests/test_apt.py::test_apt_deepin
+       tests/test_mercurial.py::test_mercurial
+)
+
+distutils_enable_tests pytest
+
+pkg_postinst() {
+       if ! has_version "dev-python/pycurl[${PYTHON_USEDEP}]" || \
+               ! has_version "dev-python/tornado[${PYTHON_USEDEP}]"; then
+               ewarn "This program is using dev-python/aiohttp as networking 
backend"
+               ewarn "However, for the best results, upstream recommends 
installing the following:"
+               ewarn "  dev-python/tornado"
+               ewarn "  dev-python/pycurl"
+               ewarn
+       fi
+
+       optfeature "jq source" "dev-python/jq[${PYTHON_USEDEP}]"
+       optfeature "httpheader source" "dev-python/lxml[${PYTHON_USEDEP}]"
+       optfeature "pypi source" "dev-python/packaging[${PYTHON_USEDEP}]"
+       if use python_targets_python3_11 || \
+               use python_targets_python3_12 || \
+               use python_targets_python3_13; then
+               optfeature "rpmrepo source" 
"dev-python/zstandard[${PYTHON_USEDEP}]"
+       fi
+       optfeature "git source" dev-vcs/git
+}

Reply via email to