biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / home-assistant-bluetooth / default.nix
blobfc288114c374a86ba785640b202bdf0c9955960c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   cython,
9   poetry-core,
10   setuptools,
12   # dependencies
13   habluetooth,
15   # tests
16   bleak,
17   pytestCheckHook,
20 buildPythonPackage rec {
21   pname = "home-assistant-bluetooth";
22   version = "1.12.2";
23   pyproject = true;
25   disabled = pythonOlder "3.11";
27   src = fetchFromGitHub {
28     owner = "home-assistant-libs";
29     repo = "home-assistant-bluetooth";
30     rev = "refs/tags/v${version}";
31     hash = "sha256-WAsgiOmYqmt/PCKp+vZA2To95YZAgnYCF8ysCn5N9nc=";
32   };
34   postPatch = ''
35     # drop pytest parametrization (coverage, etc.)
36     sed -i '/addopts/d' pyproject.toml
37   '';
39   build-system = [
40     cython
41     poetry-core
42     setuptools
43   ];
45   dependencies = [ habluetooth ];
47   nativeCheckInputs = [
48     bleak
49     pytestCheckHook
50   ];
52   pythonImportsCheck = [ "home_assistant_bluetooth" ];
54   meta = with lib; {
55     description = "Basic bluetooth models used by Home Assistant";
56     changelog = "https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/v${version}/CHANGELOG.md";
57     homepage = "https://github.com/home-assistant-libs/home-assistant-bluetooth";
58     license = licenses.asl20;
59     maintainers = teams.home-assistant.members;
60   };