biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / xiaomi-ble / default.nix
bloba053c5313997b85e328c070515629ab7723bc316
2   lib,
3   bleak,
4   bleak-retry-connector,
5   bluetooth-data-tools,
6   bluetooth-sensor-state-data,
7   buildPythonPackage,
8   cryptography,
9   fetchFromGitHub,
10   home-assistant-bluetooth,
11   poetry-core,
12   pycryptodomex,
13   pytestCheckHook,
14   pythonOlder,
15   sensor-state-data,
18 buildPythonPackage rec {
19   pname = "xiaomi-ble";
20   version = "0.32.0";
21   pyproject = true;
23   disabled = pythonOlder "3.9";
25   src = fetchFromGitHub {
26     owner = "Bluetooth-Devices";
27     repo = "xiaomi-ble";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-dZJsB40BMPo0tOFq0vLILrwfezf5dnspFK/aZWOV4uc=";
30   };
32   postPatch = ''
33     substituteInPlace pyproject.toml \
34       --replace-fail " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" ""
35   '';
37   build-system = [ poetry-core ];
40   pythonRelaxDeps = [ "pycryptodomex" ];
42   dependencies = [
43     bleak
44     bleak-retry-connector
45     bluetooth-data-tools
46     bluetooth-sensor-state-data
47     cryptography
48     home-assistant-bluetooth
49     pycryptodomex
50     sensor-state-data
51   ];
53   nativeCheckInputs = [ pytestCheckHook ];
55   pythonImportsCheck = [ "xiaomi_ble" ];
57   meta = with lib; {
58     description = "Library for Xiaomi BLE devices";
59     homepage = "https://github.com/Bluetooth-Devices/xiaomi-ble";
60     changelog = "https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v${version}";
61     license = with licenses; [ mit ];
62     maintainers = with maintainers; [ fab ];
63   };