2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
asyncstdlib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ftfy,
|
|
|
|
httpx,
|
|
|
|
netifaces,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-httpx,
|
|
|
|
pytest-timeout,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.11.6";
|
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-04 12:14:45 +00:00
|
|
|
owner = "ol-iver";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "denonavr";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-VxoRK1qeGrIunsiCzeZJUHxW/sxk+PFpntInL+G/yI8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-03-27 19:17:25 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
asyncstdlib
|
|
|
|
attrs
|
|
|
|
defusedxml
|
2024-02-29 20:09:43 +00:00
|
|
|
ftfy
|
2021-05-20 23:08:51 +00:00
|
|
|
httpx
|
2021-01-05 17:05:55 +00:00
|
|
|
netifaces
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
|
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
|
|
|
|
2024-06-05 15:53:02 +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";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/ol-iver/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 ];
|
|
|
|
};
|
|
|
|
}
|