pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / sensorpush-ble / default.nix
blob2281fdcd60fdd3fe0ee4b65030dd7cd749d91b6d
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   pythonOlder,
12   sensor-state-data,
15 buildPythonPackage rec {
16   pname = "sensorpush-ble";
17   version = "1.7.1";
18   pyproject = true;
20   disabled = pythonOlder "3.10";
22   src = fetchFromGitHub {
23     owner = "Bluetooth-Devices";
24     repo = "sensorpush-ble";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-T2sjzQoWWRGAKiMDN29jZ7jZ5/i75qpNCiuVB7VEhJw=";
27   };
29   build-system = [ poetry-core ];
31   dependencies = [
32     bluetooth-data-tools
33     bluetooth-sensor-state-data
34     home-assistant-bluetooth
35     sensor-state-data
36   ];
38   nativeCheckInputs = [
39     pytest-cov-stub
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "sensorpush_ble" ];
45   meta = with lib; {
46     description = "Library for SensorPush BLE devices";
47     homepage = "https://github.com/Bluetooth-Devices/sensorpush-ble";
48     changelog = "https://github.com/Bluetooth-Devices/sensorpush-ble/releases/tag/v${version}";
49     license = with licenses; [ mit ];
50     maintainers = with maintainers; [ fab ];
51   };