Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 bluetooth-data-tools,
4 bluetooth-sensor-state-data,
5 buildPythonPackage,
6 fetchFromGitHub,
7 home-assistant-bluetooth,
8 poetry-core,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12 sensor-state-data,
13}:
14
15buildPythonPackage rec {
16 pname = "inkbird-ble";
17 version = "1.1.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "Bluetooth-Devices";
22 repo = "inkbird-ble";
23 tag = "v${version}";
24 hash = "sha256-Brib9OMI6LRS3GopiOsJijY/gpvv7j47OTQN8tTcqLo=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 bluetooth-data-tools
31 bluetooth-sensor-state-data
32 home-assistant-bluetooth
33 sensor-state-data
34 ];
35
36 nativeCheckInputs = [
37 pytest-asyncio
38 pytest-cov-stub
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "inkbird_ble" ];
43
44 meta = {
45 description = "Library for Inkbird BLE devices";
46 homepage = "https://github.com/Bluetooth-Devices/inkbird-ble";
47 changelog = "https://github.com/Bluetooth-Devices/inkbird-ble/blob/${src.tag}/CHANGELOG.md";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ fab ];
50 };
51}