Merge pull request #282429 from fabaff/killerbee

killerbee: init at 3.0.0-beta.2
This commit is contained in:
Fabian Affolter
2024-02-19 23:55:37 +01:00
committed by GitHub
3 changed files with 86 additions and 0 deletions
+44
View File
@@ -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 ];
};
}
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "rangeparser";
version = "0.1.3";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "RangeParser";
inherit version;
hash = "sha256-gjA7Iytg802Lv7/rLfhGE0yjz4e6FfOXbEoWNPjhCOY=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"rangeparser"
];
meta = with lib; {
description = "Parses ranges";
homepage = "https://pypi.org/project/RangeParser/";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -12489,6 +12489,8 @@ self: super: with self; {
rangehttpserver = callPackage ../development/python-modules/rangehttpserver { };
rangeparser = callPackage ../development/python-modules/rangeparser { };
rank-bm25 = callPackage ../development/python-modules/rank-bm25 { };
rapidfuzz = callPackage ../development/python-modules/rapidfuzz { };