diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix new file mode 100644 index 000000000000..d483da652ff9 --- /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 ]; + }; +}