1{ lib
2, asyncstdlib
3, attrs
4, buildPythonPackage
5, defusedxml
6, fetchFromGitHub
7, httpx
8, netifaces
9, pytest-asyncio
10, pytestCheckHook
11, pytest-httpx
12, pytest-timeout
13, pythonOlder
14}:
15
16buildPythonPackage rec {
17 pname = "denonavr";
18 version = "0.10.9";
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "scarface-4711";
23 repo = pname;
24 rev = version;
25 sha256 = "sha256-Y0sFRKnKZAdP95EyE3h1g92AJeT0Xkshjjwfv/vnfW8=";
26 };
27
28 propagatedBuildInputs = [
29 asyncstdlib
30 attrs
31 defusedxml
32 httpx
33 netifaces
34 ];
35
36 checkInputs = [
37 pytest-asyncio
38 pytestCheckHook
39 pytest-httpx
40 pytest-timeout
41 ];
42
43 pythonImportsCheck = [ "denonavr" ];
44
45 meta = with lib; {
46 description = "Automation Library for Denon AVR receivers";
47 homepage = "https://github.com/scarface-4711/denonavr";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ colemickens ];
50 };
51}