forked from mirrors/nixpkgs
3379e44a0b
Diff: https://github.com/home-assistant-libs/home-assistant-bluetooth/compare/refs/tags/v1.8.1...v1.9.0 Changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/v1.9.0/CHANGELOG.md
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, cython
|
|
, poetry-core
|
|
, setuptools
|
|
, bleak
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "home-assistant-bluetooth";
|
|
version = "1.9.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/ne2pnSmeHuwlGCrMC0x/yNDCvB/P4SqmK/wwcmHlJQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# drop pytest parametrization (coverage, etc.)
|
|
sed -i '/addopts/d' pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
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/v${version}/CHANGELOG.md";
|
|
homepage = "https://github.com/home-assistant-libs/home-assistant-bluetooth";
|
|
license = licenses.asl20;
|
|
maintainers = teams.home-assistant.members;
|
|
};
|
|
}
|