1{ lib
2, aioconsole
3, bleak
4, buildPythonPackage
5, dbus-next
6, fetchFromGitHub
7, numpy
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "bless";
14 version = "0.2.4";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "kevincar";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-lC1M6/9uawi4KpcK4/fAygENa9rZv9c7qCVdsZYtl5Q=";
24 };
25
26 propagatedBuildInputs = [
27 bleak
28 dbus-next
29 ];
30
31 checkInputs = [
32 aioconsole
33 numpy
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "bless"
39 ];
40
41 meta = with lib; {
42 description = "Library for creating a BLE Generic Attribute Profile (GATT) server";
43 homepage = "https://github.com/kevincar/bless";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}