Files
nixpkgs/pkgs/development/python-modules/mozart-api/default.nix
T

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
aenum,
aioconsole,
aiohttp,
aiohttp-retry,
inflection,
pydantic,
python-dateutil,
typing-extensions,
urllib3,
websockets,
zeroconf,
}:
buildPythonPackage rec {
pname = "mozart-api";
version = "5.3.1.108.0";
pyproject = true;
src = fetchPypi {
pname = "mozart_api";
inherit version;
hash = "sha256-12qjXQKQS3k1hDRLW0UkR5OqHM/QmXKOnfoJVguhHWQ=";
};
build-system = [ poetry-core ];
dependencies = [
aioconsole
aiohttp
aiohttp-retry
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 ];
};
}