about summary refs log tree commit diff
path: root/pkgs/by-name/ki
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-02-19 23:55:37 +0100
committerGitHub <noreply@github.com>2024-02-19 23:55:37 +0100
commit13d86d1c0669c50ed106192ebde6b5bedc909549 (patch)
treeb4970e233e09828a211d828af3a76d3900a5f2ef /pkgs/by-name/ki
parent66336d9188c415b5109f48010992b7245f8d74ec (diff)
parenta8f65a171d83ff3f683bcd5ee99cb1e7c2228dae (diff)
Merge pull request #282429 from fabaff/killerbee
killerbee: init at 3.0.0-beta.2
Diffstat (limited to 'pkgs/by-name/ki')
-rw-r--r--pkgs/by-name/ki/killerbee/package.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix
new file mode 100644
index 0000000000000..d483da652ff9d
--- /dev/null
+++ b/pkgs/by-name/ki/killerbee/package.nix
@@ -0,0 +1,44 @@
+{ lib
+, fetchFromGitHub
+, libgcrypt
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "killerbee";
+  version = "3.0.0-beta.2";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "riverloopsec";
+    repo = "killerbee";
+    rev = "refs/tags/${version}";
+    hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0=";
+  };
+
+  nativeBuildInputs = with python3.pkgs; [
+    setuptools
+  ];
+
+  buildInputs = with python3.pkgs; [
+    libgcrypt
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pyserial
+    pyusb
+    rangeparser
+    scapy
+  ];
+
+  pythonImportsCheck = [
+    "killerbee"
+  ];
+
+  meta = with lib; {
+    description = "IEEE 802.15.4/ZigBee Security Research Toolkit";
+    homepage = "https://github.com/riverloopsec/killerbee";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ fab ];
+  };
+}