mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
app-misc/desec-dns: new package, add 1.4.0
Signed-off-by: Jackson Chen <gentoo@jacksonchen666.com>
This commit is contained in:
1
app-misc/desec-dns/Manifest
Normal file
1
app-misc/desec-dns/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST desec-dns-1.4.0.gh.tar.gz 121158 BLAKE2B 655bde09272597c8cdc6085e7dec4cd232a83aa410a2a174ca3cc68b08e8aad303557b7e2fcf2826fd3e7e514dc686923b303620295279cb3d7841e460aa3abb SHA512 1cd95c0215973046a6c6e488b4f14b7e40f93f8db1310c70e03d7bba852ac4875acb6d48edaf1f29f22ccbc77378dea674e95b49d6df2739e451ced11994d1c0
|
||||||
52
app-misc/desec-dns/desec-dns-1.4.0.ebuild
Normal file
52
app-misc/desec-dns/desec-dns-1.4.0.ebuild
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# Copyright 2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=poetry
|
||||||
|
PYTHON_COMPAT=( python3_{10..14} )
|
||||||
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="A simple deSEC.io API client"
|
||||||
|
HOMEPAGE="https://github.com/s-hamann/desec-dns"
|
||||||
|
SRC_URI="https://github.com/s-hamann/desec-dns/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
|
|
||||||
|
# TODO: 9999 (pyproject versioning?)
|
||||||
|
|
||||||
|
IUSE="test"
|
||||||
|
DEPEND="
|
||||||
|
>=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-recording[${PYTHON_USEDEP}]
|
||||||
|
dev-python/dnspython[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
default
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
|
||||||
|
# https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages
|
||||||
|
sed -i 's/include = \["CHANGELOG.md"\]//' pyproject.toml || die "failed to sed pyproject.toml (exclude CHANGELOG.md)"
|
||||||
|
|
||||||
|
sed -i 's/version = "0.0.0"/version = "v'${PV}'"/' pyproject.toml || die "failed to sed pyproject.toml (fix version)"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
default
|
||||||
|
dodoc "CHANGELOG.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "TLSA record management support" dev-python/cryptography
|
||||||
|
optfeature "zonefile parsing support" dev-python/dnspython
|
||||||
|
}
|
||||||
11
app-misc/desec-dns/metadata.xml
Normal file
11
app-misc/desec-dns/metadata.xml
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="person">
|
||||||
|
<email>gentoo@jacksonchen666.com</email>
|
||||||
|
<name>Jackson Chen</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">s-hamann/desec-dns</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user