blob: b299f8975d03343330a0d852f035d740e002a748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{13..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?)
DEPEND="
>=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
test? (
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
EPYTEST_PLUGINS=(
pytest-recording
)
distutils_enable_tests pytest
python_prepare_all() {
default
distutils-r1_python_prepare_all
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
}
|