Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 851 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, defusedxml 5, requests 6, pytest 7, requests-mock 8, mock 9, pytestcov 10, pytest-timeout 11, testtools 12}: 13 14buildPythonPackage rec { 15 pname = "rxv"; 16 version = "0.6.0"; 17 18 src = fetchFromGitHub { 19 owner = "wuub"; 20 repo = pname; 21 # Releases are not tagged 22 rev = "9b586203665031f93960543a272bb1a8f541ed37"; 23 sha256 = "1dw3ayrzknai2279bhkgzcapzw06rhijlny33rymlbp7irp0gvnj"; 24 }; 25 26 propagatedBuildInputs = [ defusedxml requests ]; 27 28 checkInputs = [ pytest requests-mock mock pytestcov pytest-timeout testtools ]; 29 checkPhase = '' 30 pytest 31 ''; 32 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 }; 39} 40