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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.11.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-0zclIoEGKjA8Ro8k+HYX/d77U+ntQZv0vq6gC4Sa7zE=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"denonavr"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/ol-iver/denonavr/releases/tag/${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|