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 rec {
15 pname = "mopeka-iot-ble";
16 version = "0.8.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "bluetooth-devices";
21 repo = "mopeka-iot-ble";
22 tag = "v${version}";
23 hash = "sha256-CKLC0p66JapE9qNePE11ttoGMVd4kA7g28kA+pYLXCE=";
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 = [ "mopeka_iot_ble" ];
41
42 meta = {
43 description = "Library for Mopeka IoT BLE devices";
44 homepage = "https://github.com/bluetooth-devices/mopeka-iot-ble";
45 changelog = "https://github.com/Bluetooth-Devices/mopeka-iot-ble/releases/tag/v${version}";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ fab ];
48 };
49}