2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, asyncstdlib
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, defusedxml
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, netifaces
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-httpx
|
|
|
|
, pytest-timeout
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.10.9";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scarface-4711";
|
2021-05-20 23:08:51 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-Y0sFRKnKZAdP95EyE3h1g92AJeT0Xkshjjwfv/vnfW8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
asyncstdlib
|
|
|
|
attrs
|
|
|
|
defusedxml
|
|
|
|
httpx
|
2021-01-05 17:05:55 +00:00
|
|
|
netifaces
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-asyncio
|
2021-01-05 17:05:55 +00:00
|
|
|
pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-httpx
|
|
|
|
pytest-timeout
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "denonavr" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Automation Library for Denon AVR receivers";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/scarface-4711/denonavr";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|