2020-07-02 14:26:33 +02:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, pyserial, halo }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "btlejack";
|
2022-11-18 13:19:31 +01:00
|
|
|
version = "2.1.1";
|
2020-07-02 14:26:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "virtualabs";
|
|
|
|
repo = "btlejack";
|
2022-11-18 13:19:31 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-Q6y9murV1o2i1sluqTVB5+X3B7ywFsI0ZvlJjHrHSpo=";
|
2020-07-02 14:26:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s|^.*'argparse',$||" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyserial halo ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/virtualabs/btlejack";
|
|
|
|
description = "Bluetooth Low Energy Swiss-army knife";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "btlejack";
|
2020-07-02 14:26:33 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ oxzi ];
|
|
|
|
};
|
|
|
|
}
|