0eeabdeb66
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
55 lines
967 B
Nix
55 lines
967 B
Nix
{ lib
|
|
, asyncstdlib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, netifaces
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-httpx
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "denonavr";
|
|
version = "0.10.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scarface-4711";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-ZL04JJZStOr6egoki85qCQrXoSTTO43RlLVbNBVz3QA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asyncstdlib
|
|
attrs
|
|
defusedxml
|
|
httpx
|
|
netifaces
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
pytest-httpx
|
|
pytest-timeout
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"denonavr"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Automation Library for Denon AVR receivers";
|
|
homepage = "https://github.com/scarface-4711/denonavr";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|