biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / radio / urh / default.nix
blob6363670d56b7576bfea911f3f1c71fbd489db0d6
1 { lib, fetchFromGitHub, python3Packages
2 , hackrf, rtl-sdr, airspy, limesuite, libiio
3 , libbladeRF
4 , qt5
5 , USRPSupport ? false, uhd }:
7 python3Packages.buildPythonApplication rec {
8   pname = "urh";
9   version = "2.9.6";
11   src = fetchFromGitHub {
12     owner = "jopohl";
13     repo = pname;
14     rev = "refs/tags/v${version}";
15     sha256 = "sha256-4Fe2+BUdnVdNQHqZeftXLabn/vTzgyynOtqy0rAb0Rk=";
16   };
18   nativeBuildInputs = [ qt5.wrapQtAppsHook ];
19   buildInputs = [ hackrf rtl-sdr airspy limesuite libiio libbladeRF ]
20     ++ lib.optional USRPSupport uhd;
22   propagatedBuildInputs = with python3Packages; [
23     pyqt5 numpy psutil cython pyzmq pyaudio setuptools
24   ];
26   postFixup = ''
27     wrapQtApp $out/bin/urh
28   '';
30   doCheck = false;
32   meta = with lib; {
33     homepage = "https://github.com/jopohl/urh";
34     description = "Universal Radio Hacker: investigate wireless protocols like a boss";
35     license = licenses.gpl3;
36     platforms = platforms.unix;
37     maintainers = with maintainers; [ fpletz ];
38   };