Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / rxv / default.nix
blob7f3e6527d060f92dd74c0ed841437ca69ff90a49
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , defusedxml
5 , requests
6 , pytest
7 , requests-mock
8 , mock
9 , pytestcov
10 , pytest-timeout
11 , testtools
14 buildPythonPackage rec {
15   pname = "rxv";
16   version = "0.6.0";
18   src = fetchFromGitHub {
19     owner = "wuub";
20     repo = pname;
21     # Releases are not tagged
22     rev = "9b586203665031f93960543a272bb1a8f541ed37";
23     sha256 = "1dw3ayrzknai2279bhkgzcapzw06rhijlny33rymlbp7irp0gvnj";
24   };
26   propagatedBuildInputs = [ defusedxml requests ];
28   checkInputs = [ pytest requests-mock mock pytestcov pytest-timeout testtools ];
29   checkPhase = ''
30     pytest
31   '';
33   meta = with lib; {
34     description = "Automation Library for Yamaha RX-V473, RX-V573, RX-V673, RX-V773 receivers";
35     homepage = "https://github.com/wuub/rxv";
36     license = licenses.mit;
37     maintainers = with maintainers; [ flyfloh ];
38   };