mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
1f0b0a2096
Diff: https://github.com/ol-iver/denonavr/compare/refs/tags/0.11.2...0.11.3 Changelog: https://github.com/ol-iver/denonavr/releases/tag/0.11.3
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, asyncstdlib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, netifaces
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-httpx
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "denonavr";
|
|
version = "0.11.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ol-iver";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-QBy1nm09trAmL7KsPWgv5iMAOJ3Fkviug/o7a+tSSDA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asyncstdlib
|
|
attrs
|
|
defusedxml
|
|
httpx
|
|
netifaces
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
pytest-httpx
|
|
pytest-timeout
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"denonavr"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Automation Library for Denon AVR receivers";
|
|
homepage = "https://github.com/ol-iver/denonavr";
|
|
changelog = "https://github.com/ol-iver/denonavr/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|