at 24.05-pre 1.0 kB view raw
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, setuptools-scm 14}: 15 16buildPythonPackage rec { 17 pname = "rxv"; 18 version = "0.7.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "wuub"; 25 repo = pname; 26 rev = "v${version}"; 27 sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8"; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 defusedxml 38 requests 39 ]; 40 41 nativeCheckInputs = [ 42 mock 43 pytest-asyncio 44 pytest-timeout 45 pytest-vcr 46 pytestCheckHook 47 requests-mock 48 ]; 49 50 pythonImportsCheck = [ "rxv" ]; 51 52 meta = with lib; { 53 description = "Python library for communicate with Yamaha RX-Vxxx receivers"; 54 homepage = "https://github.com/wuub/rxv"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ flyfloh ]; 57 }; 58}