1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pytest-cov-stub,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "sensor-state-data";
13 version = "2.19.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "Bluetooth-Devices";
20 repo = "sensor-state-data";
21 tag = "v${version}";
22 hash = "sha256-Jl+kyr9WhYEzvsnSdqfeDDWgcEU9Yi6Snd67YQ+1MqQ=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "sensor_state_data" ];
33
34 meta = with lib; {
35 description = "Models for storing and converting Sensor Data state";
36 homepage = "https://github.com/bluetooth-devices/sensor-state-data";
37 changelog = "https://github.com/Bluetooth-Devices/sensor-state-data/releases/tag/${src.tag}";
38 license = with licenses; [ asl20 ];
39 maintainers = with maintainers; [ fab ];
40 };
41}