1 { stdenv, lib, fetchFromGitHub, python3Packages
2 , hackrf, rtl-sdr, airspy, limesuite, libiio
5 , USRPSupport ? false, uhd }:
7 python3Packages.buildPythonApplication rec {
11 src = fetchFromGitHub {
14 rev = "refs/tags/v${version}";
15 sha256 = "sha256-4Fe2+BUdnVdNQHqZeftXLabn/vTzgyynOtqy0rAb0Rk=";
18 nativeBuildInputs = [ qt5.wrapQtAppsHook ];
19 buildInputs = [ hackrf rtl-sdr airspy limesuite libiio libbladeRF ]
20 ++ lib.optional USRPSupport uhd
21 ++ lib.optional stdenv.hostPlatform.isLinux qt5.qtwayland;
23 propagatedBuildInputs = with python3Packages; [
24 pyqt5 numpy psutil cython pyzmq pyaudio setuptools
28 wrapQtApp $out/bin/urh
34 homepage = "https://github.com/jopohl/urh";
35 description = "Universal Radio Hacker: investigate wireless protocols like a boss";
36 license = licenses.gpl3;
37 platforms = platforms.unix;
38 maintainers = with maintainers; [ fpletz ];