Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / habluetooth / default.nix
blobe84fa94ae0c126f72da5ad758a310edc49de4efa
1 { lib
2 , bleak
3 , bleak-retry-connector
4 , bluetooth-adapters
5 , bluetooth-auto-recovery
6 , bluetooth-data-tools
7 , buildPythonPackage
8 , cython
9 , fetchFromGitHub
10 , poetry-core
11 , pytestCheckHook
12 , pythonOlder
13 , setuptools
14 , wheel
17 buildPythonPackage rec {
18   pname = "habluetooth";
19   version = "2.4.2";
20   pyproject = true;
22   disabled = pythonOlder "3.10";
24   src = fetchFromGitHub {
25     owner = "Bluetooth-Devices";
26     repo = "habluetooth";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-IoVXmq9ShwLpGtoxVOtoirSirJJ1DqBI/mP7PmK7OUs=";
29   };
31   postPatch = ''
32     substituteInPlace pyproject.toml \
33       --replace " --cov=habluetooth --cov-report=term-missing:skip-covered" ""
34   '';
36   nativeBuildInputs = [
37     cython
38     poetry-core
39     setuptools
40     wheel
41   ];
43   propagatedBuildInputs = [
44     bleak
45     bleak-retry-connector
46     bluetooth-adapters
47     bluetooth-auto-recovery
48     bluetooth-data-tools
49   ];
51   nativeCheckInputs = [
52     pytestCheckHook
53   ];
55   pythonImportsCheck = [
56     "habluetooth"
57   ];
59   meta = with lib; {
60     description = "Library for high availability Bluetooth";
61     homepage = "https://github.com/Bluetooth-Devices/habluetooth";
62     changelog = "https://github.com/Bluetooth-Devices/habluetooth/blob/v${version}/CHANGELOG.md";
63     license = licenses.asl20;
64     maintainers = with maintainers; [ fab ];
65   };