2024-07-31 10:19:44 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
poetry-core,
|
|
|
|
aenum,
|
|
|
|
aioconsole,
|
|
|
|
aiohttp,
|
|
|
|
inflection,
|
|
|
|
pydantic,
|
|
|
|
python-dateutil,
|
|
|
|
typing-extensions,
|
|
|
|
urllib3,
|
|
|
|
websockets,
|
|
|
|
zeroconf,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mozart-api";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "3.4.1.8.8";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "mozart_api";
|
|
|
|
inherit version;
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-Lonv9f7/FSEdisKOuL+T1gKbxpog22DcNZTaK9L84Mc=";
|
2024-07-31 10:19:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|