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-cov-stub,
10 pytestCheckHook,
11 sensor-state-data,
12}:
13
14buildPythonPackage rec {
15 pname = "govee-ble";
16 version = "1.1.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Bluetooth-Devices";
21 repo = "govee-ble";
22 tag = "v${version}";
23 hash = "sha256-fIQZd25NlkFE24d2ro5N4liFneH2SdGBw4gkJKoSqnk=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 bluetooth-data-tools
30 bluetooth-sensor-state-data
31 home-assistant-bluetooth
32 sensor-state-data
33 ];
34
35 nativeCheckInputs = [
36 pytest-cov-stub
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "govee_ble" ];
41
42 meta = {
43 description = "Library for Govee BLE devices";
44 homepage = "https://github.com/Bluetooth-Devices/govee-ble";
45 changelog = "https://github.com/bluetooth-devices/govee-ble/blob/${src.tag}/CHANGELOG.md";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ fab ];
48 };
49}