Merge pull request #313598 from fabaff/killerbee-darwin

killerbee: limit platform support
This commit is contained in:
Weijia Wang 2024-05-22 13:49:36 +02:00 committed by GitHub
commit 497c7eeed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,8 @@
{ lib {
, fetchFromGitHub lib,
, libgcrypt fetchFromGitHub,
, python3 libgcrypt,
python3,
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
@ -16,29 +17,25 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0="; hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0=";
}; };
nativeBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
setuptools
];
buildInputs = with python3.pkgs; [ buildInputs = with python3.pkgs; [ libgcrypt ];
libgcrypt
];
propagatedBuildInputs = with python3.pkgs; [ dependencies = with python3.pkgs; [
pyserial pyserial
pyusb pyusb
rangeparser rangeparser
scapy scapy
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "killerbee" ];
"killerbee"
];
meta = with lib; { meta = with lib; {
description = "IEEE 802.15.4/ZigBee Security Research Toolkit"; description = "IEEE 802.15.4/ZigBee Security Research Toolkit";
homepage = "https://github.com/riverloopsec/killerbee"; homepage = "https://github.com/riverloopsec/killerbee";
changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${version}";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
}; };
} }