2021-05-07 16:49:30 +00:00
|
|
|
{ lib
|
|
|
|
, asyncstdlib
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, defusedxml
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, netifaces
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-httpx
|
|
|
|
, pytest-timeout
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2021-05-12 15:23:58 +00:00
|
|
|
version = "0.10.8";
|
2021-05-07 16:49:30 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scarface-4711";
|
2021-05-07 16:49:30 +00:00
|
|
|
repo = pname;
|
2020-01-17 07:58:30 +00:00
|
|
|
rev = version;
|
2021-05-12 15:23:58 +00:00
|
|
|
sha256 = "02q76mbmg2rkm4shy2apwbw9pvicy9j5v4zgpjwzxif9yf7m8aqk";
|
2020-01-17 07:58:30 +00:00
|
|
|
};
|
|
|
|
|
2020-12-30 15:16:20 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-07 16:49:30 +00:00
|
|
|
asyncstdlib
|
|
|
|
attrs
|
|
|
|
defusedxml
|
|
|
|
httpx
|
2020-12-30 15:16:20 +00:00
|
|
|
netifaces
|
|
|
|
];
|
2020-01-17 07:58:30 +00:00
|
|
|
|
2020-12-30 15:16:20 +00:00
|
|
|
checkInputs = [
|
2021-05-07 16:49:30 +00:00
|
|
|
pytest-asyncio
|
2020-12-30 15:16:20 +00:00
|
|
|
pytestCheckHook
|
2021-05-07 16:49:30 +00:00
|
|
|
pytest-httpx
|
|
|
|
pytest-timeout
|
2020-12-30 15:16:20 +00:00
|
|
|
];
|
2020-01-17 07:58:30 +00:00
|
|
|
|
2021-05-07 16:49:30 +00:00
|
|
|
pythonImportsCheck = [ "denonavr" ];
|
|
|
|
|
2020-01-17 07:58:30 +00:00
|
|
|
meta = with lib; {
|
2021-05-07 16:49:30 +00:00
|
|
|
description = "Automation Library for Denon AVR receivers";
|
2020-01-17 07:58:30 +00:00
|
|
|
homepage = "https://github.com/scarface-4711/denonavr";
|
2021-05-07 16:49:30 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-01-17 07:58:30 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|