dev-python/nvchecker: add new pkg

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
This commit is contained in:
Yongxiang Liang authored and 梁永祥 committed 2022-02-19 23:20:32 +08:00
1 parent 02a8b650a4
commit 54993bc204
3 files changed
+70

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST nvchecker-2.7.tar.gz 55399 BLAKE2B e5f34b49dfcecf2094f7571b0f456f9f1476600e47e9c8845b83392e2cd389af7c251ddfe095a03b0366e63586fb20999eece81302a457cb752876db32b55dfb SHA512 37743e9db47433a6aab1c42ffbd05c684fb0b2c20f8965705ce0253789c373b6216eae4d6d6348f7f4abafc9b417383aa5c60d9a8dfdefbf31f7c359409b7567
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>liang yongxiang</name>
<email>tanekliang@gmail.com</email>
</maintainer>
<upstream>
<remote-id type="pypi">nvchecker</remote-id>
<remote-id type="github">lilydjwg/nvchecker</remote-id>
</upstream>
<use>
<flag name='ini'>convert your old configuration files from ini to toml</flag>
<flag name='notify'>enable nvchecker-notify support</flag>
</use>
</pkgmetadata>
+53
View File
@@ -0,0 +1,53 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9,10} )
inherit distutils-r1
DESCRIPTION="nvchecker is for checking if a new version of some software has been released"
HOMEPAGE="https://pypi.org/project/nvchecker/"
SRC_URI="https://github.com/lilydjwg/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="ini notify"
PROPERTIES="test_network"
RESTRICT="test"
BDEPEND="
test? (
dev-python/flaky[$PYTHON_USEDEP]
dev-python/pytest-asyncio[$PYTHON_USEDEP]
dev-python/pytest-httpbin[$PYTHON_USEDEP]
)
"
RDEPEND="
dev-python/structlog[$PYTHON_USEDEP]
dev-python/tomli[$PYTHON_USEDEP]
>=www-servers/tornado-6[${PYTHON_USEDEP}]
ini? (
dev-python/iniconfig[$PYTHON_USEDEP]
)
notify? (
dev-python/pygobject[$PYTHON_USEDEP]
virtual/notification-daemon
)
"
distutils_enable_tests pytest
python_install_all() {
distutils-r1_python_install_all
if ! use ini; then
rm "${ED}"/usr/bin/nvchecker-ini2toml || die
fi
if ! use notify; then
rm "${ED}"/usr/bin/nvchecker-notify || die
fi
}