Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / denonavr / default.nix
blobacfa4dc0eb5c59e167f4c74c11aa42d9b7953917
1 { lib
2 , async-timeout
3 , asyncstdlib
4 , attrs
5 , buildPythonPackage
6 , defusedxml
7 , fetchFromGitHub
8 , httpx
9 , netifaces
10 , pytest-asyncio
11 , pytestCheckHook
12 , pytest-httpx
13 , pytest-timeout
14 , pythonOlder
15 , setuptools
18 buildPythonPackage rec {
19   pname = "denonavr";
20   version = "0.11.4";
21   format = "pyproject";
23   disabled = pythonOlder "3.7";
25   src = fetchFromGitHub {
26     owner = "ol-iver";
27     repo = pname;
28     rev = "refs/tags/${version}";
29     hash = "sha256-0+BjakGGnCbmiSHSipRifPkasfP1vvAWGvzyRufpsOk=";
30   };
32   nativeBuildInputs = [
33     setuptools
34   ];
36   propagatedBuildInputs = [
37     asyncstdlib
38     attrs
39     defusedxml
40     httpx
41     netifaces
42   ] ++ lib.optionals (pythonOlder "3.11") [
43     async-timeout
44   ];
46   nativeCheckInputs = [
47     pytest-asyncio
48     pytestCheckHook
49     pytest-httpx
50     pytest-timeout
51   ];
53   pythonImportsCheck = [
54     "denonavr"
55   ];
57   meta = with lib; {
58     description = "Automation Library for Denon AVR receivers";
59     homepage = "https://github.com/ol-iver/denonavr";
60     changelog = "https://github.com/ol-iver/denonavr/releases/tag/${version}";
61     license = with licenses; [ mit ];
62     maintainers = with maintainers; [ colemickens ];
63   };