about summary refs log tree commit diff
path: root/pkgs/applications/radio/btlejack/default.nix
blob: 5be832d6d9a68fa85f95f8501650f7a999610008 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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";
    mainProgram = "btlejack";
    license = licenses.mit;
    maintainers = with maintainers; [ oxzi ];
  };
}