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