blob: 8e6315db900f9c0779c5dddab4222a4f5d75a612 (
plain)
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
|
{
ahocorapy,
buildPythonPackage,
construct,
fetchFromGitHub,
lib,
pybluez,
pytestCheckHook,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "beacontools";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "citruz";
repo = "beacontools";
tag = "v${version}";
hash = "sha256-3a/HDssOqIfReSijRvmiXwuZjvWLJfDaDyUdA2vv/jA=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"ahocorapy"
];
dependencies = [
ahocorapy
construct
];
optional-dependencies = {
scan = lib.optionals stdenv.hostPlatform.isLinux [ pybluez ];
};
pythonImportsCheck = [ "beacontools" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
changelog = "https://github.com/citruz/beacontools/releases/tag/${src.tag}";
description = "Python library for working with various types of Bluetooth LE Beacons";
homepage = "https://github.com/citruz/beacontools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|