mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
censys: update, add doc and test
add upstream in metadata
This commit is contained in:
parent
809a14521b
commit
3a3a614cbf
4 changed files with 62 additions and 27 deletions
|
|
@ -1 +1 @@
|
|||
DIST censys-2.1.8.tar.gz 37038 BLAKE2B f2b67d47d6b215a371bad39d3ecaa100f854aeec4dabf6a452db75f96073547da9a2962d09978dab13592d302f0e3aa87df9815c400b1d45965f477ccf230884 SHA512 c262239e82fed989d446257ed3bd0392415f568ae2e9033f418c78ccdfded57b9e124ae4a331f8bc4813a685dcfdd759ca23883509a0ee747c4662dd7428f503
|
||||
DIST censys-2.2.17.gh.tar.gz 342363 BLAKE2B fe6e50177bd7defdfd3ac2cc8df594c1d93989a2cb4e1479ea83d8e59074562cd3c616962b405e5a3fa1e207440cbd80a2b6fd50406793da9e68c35504bff0ee SHA512 b667fc72ebbdb1016dd9d2b66d6112775864c2cbfde246a1ab23d67b1d3a928fa978402833f59b1df2747253393d7529dee005aa8e2542d8c5784f07be883ad7
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python library for interacting with Censys Search Engine (censys.io)"
|
||||
HOMEPAGE="https://github.com/censys/censys-python"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
>=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/backoff-2.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-10.16.2[${PYTHON_USEDEP}]
|
||||
dev-python/importlib-metadata[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
57
dev-python/censys/censys-2.2.17.ebuild
Normal file
57
dev-python/censys/censys-2.2.17.ebuild
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python library for interacting with Censys Search Engine (censys.io)"
|
||||
HOMEPAGE="https://censys-python.readthedocs.io/"
|
||||
SRC_URI="https://github.com/censys/censys-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${PN}-python-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/argcomplete-2.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/argcomplete-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/backoff-2.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/backoff-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.29.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-10.16.2[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-3.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
dev-python/responses[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme \
|
||||
dev-python/sphinx-prompt \
|
||||
dev-python/sphinx-tabs \
|
||||
dev-python/sphinx-copybutton \
|
||||
dev-python/sphinxcontrib-autoprogram
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
if use test; then
|
||||
sed -i 's/--cov //' pytest.ini
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
sed -i 's/-prompt/_prompt/' docs/conf.py
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
|
@ -5,4 +5,8 @@
|
|||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">censys/censys-python</remote-id>
|
||||
<remote-id type="pypi">censys</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
|
|||
Loading…
Reference in a new issue