summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ki/killerbee/package.nix
blob: cdf3d0ecd575300920825902fbf6ccf309aa6f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  fetchFromGitHub,
  libgcrypt,
  python3,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "killerbee";
  version = "3.0.0-beta.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "riverloopsec";
    repo = "killerbee";
    tag = finalAttrs.version;
    hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0=";
  };

  build-system = with python3.pkgs; [ setuptools ];

  buildInputs = [ libgcrypt ];

  dependencies = with python3.pkgs; [
    pycrypto
    pyserial
    pyusb
    rangeparser
    scapy
  ];

  pythonImportsCheck = [ "killerbee" ];

  meta = {
    description = "IEEE 802.15.4/ZigBee Security Research Toolkit";
    homepage = "https://github.com/riverloopsec/killerbee";
    changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${finalAttrs.version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
    platforms = lib.platforms.linux;
  };
})