1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 dbus-python,
6 pygobject3,
7}:
8
9buildPythonPackage rec {
10 pname = "gatt";
11 version = "0.2.6";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "getsenic";
16 repo = "gatt-python";
17 rev = version;
18 hash = "sha256-GMLqQ9ojQ649hbbJB+KiQoOhiTWweOgv6zaCDzhIB5A=";
19 };
20
21 propagatedBuildInputs = [
22 dbus-python
23 pygobject3
24 ];
25
26 pythonImportsCheck = [ "gatt" ];
27
28 meta = with lib; {
29 description = "Bluetooth (Generic Attribute Profile) GATT SDK for Python";
30 mainProgram = "gattctl";
31 homepage = "https://github.com/getsenic/gatt-python/";
32 license = licenses.mit;
33 maintainers = [ ];
34 };
35}