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 poetry-core,
8 pytest-cov-stub,
9 pytestCheckHook,
10 sensor-state-data,
11}:
12
13buildPythonPackage rec {
14 pname = "kegtron-ble";
15 version = "1.0.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "Bluetooth-Devices";
20 repo = "kegtron-ble";
21 tag = "v${version}";
22 hash = "sha256-aPWf+EHr6Et4OHJ8ZN9M1NxKhaf7piEQilzAsBO3d5E=";
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 = [ "kegtron_ble" ];
39
40 meta = with lib; {
41 description = "Library for Kegtron BLE devices";
42 homepage = "https://github.com/Bluetooth-Devices/kegtron-ble";
43 changelog = "https://github.com/Bluetooth-Devices/kegtron-ble/blob/${src.tag}/CHANGELOG.md";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}