Skip to content

Commit

Permalink
chirp: add python 3.12 basically untested
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Jun 7, 2024
1 parent 7b0fc31 commit 00af9dc
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-radio/chirp/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST chirp-20240404.tar.gz 1973257 BLAKE2B 566c0ed4ff9b0fe03bb1863e402b27b1b9a29c50b5467ca22bedf62e3b5584e82cde0c8cd430b92a223e0720e6b8c4ed5aa6b6632f660d7a01fc2f8dc7c78af9 SHA512 fc975eca574f2a230caeae7479675749b9d74340ebd7352069e4c51410b4c7c082f6fa3c027c499cdd58eed40479d1c4bfef75d29f2c4f809c88b4f8018f1feb
61 changes: 61 additions & 0 deletions media-radio/chirp/chirp-20240404.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# py3.12 blocked by wxpython
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1

DESCRIPTION="A free, open-source tool for programming your radio"
HOMEPAGE="https://chirpmyradio.com/"
SRC_URI="https://archive.chirpmyradio.com/${PN}_next/next-${PV}/${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+gui radioreference"

RDEPEND="$(python_gen_cond_dep '
dev-python/pyserial[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
gui? (
dev-python/wxpython:4.0[${PYTHON_USEDEP}]
dev-python/yattag[${PYTHON_USEDEP}]
)
radioreference? ( dev-python/suds-community[${PYTHON_USEDEP}] )
')"
BDEPEND="test? ( $(python_gen_cond_dep '
dev-python/ddt[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
') )"

distutils_enable_tests pytest

# The alias map is an internal developer file not included in release tarballs.
# Other disabled tests require Internet access.
EPYTEST_DESELECT=(
tests/unit/test_directory.py::TestAliasMap
tests/unit/test_network_sources.py
tests/unit/test_repeaterbook.py
)

python_test() {
# From the contents of tests/ upstream currently only runs unit and driver
# tests, and the latter can take so long that they have even got a special
# script for only running them on drivers whose code has changed
# with respect to origin/master.
epytest tests/unit/
}

src_install() {
distutils-r1_src_install
if ! use gui; then
rm "${ED}"/usr/bin/${PN} || die
fi
}
11 changes: 11 additions & 0 deletions media-radio/chirp/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<stabilize-allarches/>
<use>
<flag name="radioreference">pull in optional deps for query of radioreference</flag>
</use>
<upstream>
<remote-id type="github">kk7ds/chirp</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 00af9dc

Please sign in to comment.