01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
26 lines
654 B
Nix
26 lines
654 B
Nix
{ lib, buildPythonApplication, fetchFromGitHub, pyserial, halo }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "btlejack";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "virtualabs";
|
|
repo = "btlejack";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-Q6y9murV1o2i1sluqTVB5+X3B7ywFsI0ZvlJjHrHSpo=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ oxzi ];
|
|
};
|
|
}
|