mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
e5d479b2c1
Diff: https://github.com/ol-iver/denonavr/compare/refs/tags/0.11.4...0.11.6 Changelog: https://github.com/ol-iver/denonavr/releases/tag/0.11.6
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, asyncstdlib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, ftfy
|
|
, httpx
|
|
, netifaces
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-httpx
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "denonavr";
|
|
version = "0.11.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ol-iver";
|
|
repo = "denonavr";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VxoRK1qeGrIunsiCzeZJUHxW/sxk+PFpntInL+G/yI8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asyncstdlib
|
|
attrs
|
|
defusedxml
|
|
ftfy
|
|
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 ];
|
|
};
|
|
}
|