nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 (finalAttrs: {
15 pname = "govee-ble";
16 version = "1.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Bluetooth-Devices";
21 repo = "govee-ble";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-+qzSNwV+2h75LVly7kZaaulKQp5Hp0N8k05BauN1TXo=";
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/${finalAttrs.src.tag}/CHANGELOG.md";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ fab ];
48 };
49})