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