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-05-20 23:08:51 +00:00
|
|
|
version = "0.10.8";
|
|
|
|
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-05-20 23:08:51 +00:00
|
|
|
sha256 = "02q76mbmg2rkm4shy2apwbw9pvicy9j5v4zgpjwzxif9yf7m8aqk";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|