2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, writeShellScript
|
2023-04-29 16:46:19 +00:00
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
2022-12-17 10:02:37 +00:00
|
|
|
, python3
|
|
|
|
, unstableGitUpdater
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "chirp";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.0-unstable-2024-07-05";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kk7ds";
|
|
|
|
repo = "chirp";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "f28814fff0566dcf6f93ac5b7a79d6d594202757";
|
|
|
|
hash = "sha256-SQ0j9DGJc48TsaUaesixJT/pMBm9NGw22qapSokj9r8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
future
|
|
|
|
pyserial
|
|
|
|
requests
|
|
|
|
six
|
2024-07-27 06:49:29 +00:00
|
|
|
suds
|
2024-01-13 08:15:51 +00:00
|
|
|
wxpython
|
2023-03-30 22:05:00 +00:00
|
|
|
yattag
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# "running build_ext" fails with no output
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
2024-05-15 15:35:15 +00:00
|
|
|
tagConverter = writeShellScript "chirp-tag-converter.sh" ''
|
|
|
|
sed -e 's/^release_//g' -e 's/_/./g'
|
|
|
|
'';
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Free, open-source tool for programming your amateur radio";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://chirp.danplanet.com/";
|
2022-12-17 10:02:37 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ emantor wrmilling ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|