mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
52 lines
935 B
Nix
52 lines
935 B
Nix
{ lib
|
|
, asyncstdlib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, netifaces
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-httpx
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "denonavr";
|
|
version = "0.10.8";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scarface-4711";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "02q76mbmg2rkm4shy2apwbw9pvicy9j5v4zgpjwzxif9yf7m8aqk";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asyncstdlib
|
|
attrs
|
|
defusedxml
|
|
httpx
|
|
netifaces
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
pytest-httpx
|
|
pytest-timeout
|
|
];
|
|
|
|
pythonImportsCheck = [ "denonavr" ];
|
|
|
|
meta = with lib; {
|
|
description = "Automation Library for Denon AVR receivers";
|
|
homepage = "https://github.com/scarface-4711/denonavr";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|