blob: 3f24aef8bf5397b0f128cbd49530b440a5c7dca2 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, aioconsole
, bleak
, buildPythonPackage
, dbus-next
, fetchFromGitHub
, numpy
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "bless";
version = "0.2.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kevincar";
repo = "bless";
rev = "refs/tags/v${version}";
hash = "sha256-dAdA+d75iE6v6t4mfgvwhRsIARLW+IqCGmaMABaDlZg=";
};
postPatch = ''
sed -i "/pysetupdi/d" setup.py
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
bleak
dbus-next
];
nativeCheckInputs = [
aioconsole
numpy
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"bless"
];
meta = with lib; {
description = "Library for creating a BLE Generic Attribute Profile (GATT) server";
homepage = "https://github.com/kevincar/bless";
changelog = "https://github.com/kevincar/bless/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|