Merge pull request #330929 from pyrox0/home-assistant/bang_olufsen-component
home-assistant: support bang_olufsen component
This commit is contained in:
commit
7a14a916f8
59
pkgs/development/python-modules/mozart-api/default.nix
Normal file
59
pkgs/development/python-modules/mozart-api/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
poetry-core,
|
||||
aenum,
|
||||
aioconsole,
|
||||
aiohttp,
|
||||
inflection,
|
||||
pydantic,
|
||||
python-dateutil,
|
||||
typing-extensions,
|
||||
urllib3,
|
||||
websockets,
|
||||
zeroconf,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mozart-api";
|
||||
version = "3.4.1.8.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "mozart_api";
|
||||
inherit version;
|
||||
hash = "sha256-a0yjVS1FnR/n7Hjw/VRFztkUFD0gQQg7OXbyPTf+Kus=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aenum
|
||||
aioconsole
|
||||
aiohttp
|
||||
inflection
|
||||
pydantic
|
||||
python-dateutil
|
||||
typing-extensions
|
||||
urllib3
|
||||
websockets
|
||||
zeroconf
|
||||
];
|
||||
|
||||
# Package has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "mozart_api" ];
|
||||
|
||||
meta = {
|
||||
description = "REST API for the Bang & Olufsen Mozart platform";
|
||||
homepage = "https://github.com/bang-olufsen/mozart-open-api";
|
||||
changelog = "https://github.com/bang-olufsen/mozart-open-api/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pyrox0 ];
|
||||
};
|
||||
}
|
@ -367,7 +367,8 @@
|
||||
pybalboa
|
||||
];
|
||||
"bang_olufsen" = ps: with ps; [
|
||||
]; # missing inputs: mozart-api
|
||||
mozart-api
|
||||
];
|
||||
"bayesian" = ps: with ps; [
|
||||
];
|
||||
"bbox" = ps: with ps; [
|
||||
@ -5302,6 +5303,7 @@
|
||||
"backup"
|
||||
"baf"
|
||||
"balboa"
|
||||
"bang_olufsen"
|
||||
"bayesian"
|
||||
"binary_sensor"
|
||||
"blackbird"
|
||||
|
@ -7948,6 +7948,8 @@ self: super: with self; {
|
||||
|
||||
mox3 = callPackage ../development/python-modules/mox3 { };
|
||||
|
||||
mozart-api = callPackage ../development/python-modules/mozart-api { };
|
||||
|
||||
mozilla-django-oidc = callPackage ../development/python-modules/mozilla-django-oidc { };
|
||||
|
||||
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
||||
|
Loading…
Reference in New Issue
Block a user