python3Packages.home-assistant-bluetooth: init at 1.4.0

This commit is contained in:
Martin Weinelt
2022-08-03 17:25:04 +02:00
parent b933abab3f
commit acb5660e33
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, bleak
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "home-assistant-bluetooth";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-viJOrmvrooHh47yyJJomOGBhQvcoWM3jKMRwZ+6/UJ8=";
};
postPatch = ''
# drop pytest parametrization (coverage, etc.)
sed -i '/addopts/d' pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bleak
];
pythonImportsCheck = [
"home_assistant_bluetooth"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Basic bluetooth models used by Home Assistant";
changelog = "https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/main/CHANGELOG.md";
homepage = "https://github.com/home-assistant-libs/home-assistant-bluetooth";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}

View File

@@ -4058,6 +4058,8 @@ in {
holoviews = callPackage ../development/python-modules/holoviews { };
home-assistant-bluetooth = callPackage ../development/python-modules/home-assistant-bluetooth { };
homeassistant-pyozw = callPackage ../development/python-modules/homeassistant-pyozw { };
homeconnect = callPackage ../development/python-modules/homeconnect { };