Merge pull request #205093 from wegank/chirp-python

chirp: 20220823 -> unstable-2022-12-07

authored by

Thiago Kenji Okada and committed by
GitHub
a89dd71c 42acfc8e

+26 -11
+26 -11
pkgs/applications/radio/chirp/default.nix
··· 1 1 { lib 2 - , fetchurl 3 - , python2 2 + , fetchFromGitHub 3 + , python3 4 + , unstableGitUpdater 4 5 }: 5 - python2.pkgs.buildPythonApplication rec { 6 - pname = "chirp-daily"; 7 - version = "20220823"; 6 + 7 + python3.pkgs.buildPythonApplication rec { 8 + pname = "chirp"; 9 + version = "unstable-2022-12-07"; 8 10 9 - src = fetchurl { 10 - url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${pname}-${version}.tar.gz"; 11 - sha256 = "sha256-V+8HQAYU2XjOYeku0XEHqkY4m0XjiUBxM61QcupnlVM="; 11 + src = fetchFromGitHub { 12 + owner = "kk7ds"; 13 + repo = "chirp"; 14 + rev = "dc0c98d22423b496faf0a86296a6ec0bb3b3e11a"; 15 + hash = "sha256-z0xD11CB7Vt8k0dPXE+E5ZD9XAFwWNxjnUs25/Gd7zI="; 12 16 }; 13 17 14 - propagatedBuildInputs = with python2.pkgs; [ 15 - pygtk pyserial libxml2 future 18 + propagatedBuildInputs = with python3.pkgs; [ 19 + future 20 + pyserial 21 + requests 22 + six 23 + wxPython_4_2 16 24 ]; 17 25 26 + # "running build_ext" fails with no output 27 + doCheck = false; 28 + 29 + passthru.updateScript = unstableGitUpdater { 30 + branch = "py3"; 31 + }; 32 + 18 33 meta = with lib; { 19 34 description = "A free, open-source tool for programming your amateur radio"; 20 35 homepage = "https://chirp.danplanet.com/"; 21 - license = licenses.gpl3; 36 + license = licenses.gpl3Plus; 22 37 platforms = platforms.linux; 23 38 }; 24 39 }