2020-01-13 19:28:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, defusedxml
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, requests-mock
|
|
|
|
, mock
|
2021-07-20 20:42:24 +00:00
|
|
|
, pytest-cov
|
2020-01-13 19:28:33 +00:00
|
|
|
, pytest-timeout
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rxv";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wuub";
|
|
|
|
repo = pname;
|
|
|
|
# Releases are not tagged
|
|
|
|
rev = "9b586203665031f93960543a272bb1a8f541ed37";
|
|
|
|
sha256 = "1dw3ayrzknai2279bhkgzcapzw06rhijlny33rymlbp7irp0gvnj";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ defusedxml requests ];
|
|
|
|
|
2021-07-20 20:42:24 +00:00
|
|
|
checkInputs = [ pytest requests-mock mock pytest-cov pytest-timeout testtools ];
|
2020-01-13 19:28:33 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Automation Library for Yamaha RX-V473, RX-V573, RX-V673, RX-V773 receivers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/wuub/rxv";
|
2020-01-13 19:28:33 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|