2024-11-15 03:47:38 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
writeShellScript,
|
|
|
|
glib,
|
|
|
|
gsettings-desktop-schemas,
|
|
|
|
python3Packages,
|
|
|
|
unstableGitUpdater,
|
|
|
|
wrapGAppsHook3,
|
2019-11-28 18:04:25 +00:00
|
|
|
}:
|
2015-07-24 22:40:35 +00:00
|
|
|
|
2024-11-15 03:47:38 +00:00
|
|
|
python3Packages.buildPythonApplication {
|
2022-12-08 03:38:04 +00:00
|
|
|
pname = "chirp";
|
2024-11-25 11:04:44 +00:00
|
|
|
version = "0.4.0-unstable-2024-11-22";
|
2024-11-15 03:47:38 +00:00
|
|
|
pyproject = true;
|
2022-12-08 03:38:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kk7ds";
|
|
|
|
repo = "chirp";
|
2024-11-25 11:04:44 +00:00
|
|
|
rev = "5b41e67d5e261da85523789e0d1e7ac377f419f6";
|
|
|
|
hash = "sha256-a1UAnSqQyud812NOxqn/PukW5PrIN0MxdEfr9jIvncY=";
|
2015-07-24 22:40:35 +00:00
|
|
|
};
|
2024-11-15 03:47:38 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
|
|
|
|
2023-04-17 01:59:46 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
2024-11-15 03:47:38 +00:00
|
|
|
|
|
|
|
build-system = with python3Packages; [
|
|
|
|
setuptools
|
2023-04-17 01:59:46 +00:00
|
|
|
];
|
2024-11-15 03:47:38 +00:00
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
2022-12-08 03:38:04 +00:00
|
|
|
pyserial
|
|
|
|
requests
|
2024-11-15 03:47:38 +00:00
|
|
|
yattag
|
2024-07-11 13:23:01 +00:00
|
|
|
suds
|
2024-01-07 12:35:51 +00:00
|
|
|
wxpython
|
2015-07-24 22:40:35 +00:00
|
|
|
];
|
|
|
|
|
2024-11-15 03:47:38 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
ddt
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace chirp/locale/Makefile \
|
|
|
|
--replace-fail /usr/bin/find find
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make -C chirp/locale
|
|
|
|
'';
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME="$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# many upstream test failures
|
2022-12-08 03:38:04 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
2024-02-07 16:27:14 +00:00
|
|
|
tagConverter = writeShellScript "chirp-tag-converter.sh" ''
|
|
|
|
sed -e 's/^release_//g' -e 's/_/./g'
|
|
|
|
'';
|
2022-12-08 03:38:04 +00:00
|
|
|
};
|
|
|
|
|
2024-11-15 03:47:38 +00:00
|
|
|
meta = {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "Free, open-source tool for programming your amateur radio";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://chirp.danplanet.com/";
|
2024-11-15 03:47:38 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
emantor
|
|
|
|
wrmilling
|
|
|
|
nickcao
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-07-24 22:40:35 +00:00
|
|
|
};
|
|
|
|
}
|