sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / tools / security / sipvicious / default.nix
blob8b0fa05cf0b51194f4e97a5dc35b1f59ac536481
1 { lib
2 , fetchFromGitHub
3 , installShellFiles
4 , python3
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "sipvicious";
9   version = "0.3.4";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "EnableSecurity";
14     repo = "sipvicious";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-O8/9Vz/u8BoF1dfGceOJdzPPYLfkdBp2DkwA5WQ3dgo=";
17   };
19   build-system = [
20     installShellFiles
21   ] ++ (with python3.pkgs; [
22     setuptools
23   ]);
25   dependencies = with python3.pkgs; [
26     scapy
27   ];
29   postInstall = ''
30     installManPage man1/*.1
31   '';
33   # Project has no tests
34   doCheck = false;
36   pythonImportsCheck = [
37     "sipvicious"
38   ];
40   meta = with lib; {
41     description = "Set of tools to audit SIP based VoIP systems";
42     homepage = "https://github.com/EnableSecurity/sipvicious";
43     changelog = "https://github.com/EnableSecurity/sipvicious/releases/tag/v${version}";
44     license = with licenses; [ gpl3Plus ];
45     maintainers = with maintainers; [ fab ];
46   };