mysql80: fix darwin and LLVM 19 build (#374591)
[NixPkgs.git] / pkgs / development / python-modules / denonavr / default.nix
blob356b81bcb04e20ddb0b00ae8b477798b6ab9c015
2   lib,
3   async-timeout,
4   asyncstdlib,
5   attrs,
6   buildPythonPackage,
7   defusedxml,
8   fetchFromGitHub,
9   ftfy,
10   httpx,
11   netifaces,
12   pytest-asyncio,
13   pytestCheckHook,
14   pytest-httpx,
15   pytest-timeout,
16   pythonOlder,
17   setuptools,
20 buildPythonPackage rec {
21   pname = "denonavr";
22   version = "1.0.1";
23   pyproject = true;
25   disabled = pythonOlder "3.7";
27   src = fetchFromGitHub {
28     owner = "ol-iver";
29     repo = "denonavr";
30     tag = version;
31     hash = "sha256-9nY1z6CX8uha/m3OOUyadrKmpbUsgL16CB2ySElOTck=";
32   };
34   pythonRelaxDeps = [ "defusedxml" ];
36   build-system = [ setuptools ];
38   dependencies = [
39     asyncstdlib
40     attrs
41     defusedxml
42     ftfy
43     httpx
44     netifaces
45   ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
47   nativeCheckInputs = [
48     pytest-asyncio
49     pytestCheckHook
50     pytest-httpx
51     pytest-timeout
52   ];
54   pythonImportsCheck = [ "denonavr" ];
56   meta = with lib; {
57     description = "Automation Library for Denon AVR receivers";
58     homepage = "https://github.com/ol-iver/denonavr";
59     changelog = "https://github.com/ol-iver/denonavr/releases/tag/${version}";
60     license = licenses.mit;
61     maintainers = with maintainers; [ ];
62   };