1{ lib
2, buildPythonPackage
3, defusedxml
4, fetchFromGitHub
5, mock
6, pytest-asyncio
7, pytest-timeout
8, pytest-vcr
9, pytestCheckHook
10, pythonOlder
11, requests
12, requests-mock
13}:
14
15buildPythonPackage rec {
16 pname = "rxv";
17 version = "0.7.0";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "wuub";
24 repo = pname;
25 rev = "v${version}";
26 sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8";
27 };
28
29 propagatedBuildInputs = [
30 defusedxml
31 requests
32 ];
33
34 checkInputs = [
35 mock
36 pytest-asyncio
37 pytest-timeout
38 pytest-vcr
39 pytestCheckHook
40 requests-mock
41 ];
42
43 pythonImportsCheck = [ "rxv" ];
44
45 meta = with lib; {
46 description = "Python library for communicate with Yamaha RX-Vxxx receivers";
47 homepage = "https://github.com/wuub/rxv";
48 license = licenses.mit;
49 maintainers = with maintainers; [ flyfloh ];
50 };
51}