1{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests
2, pytest, testtools, requests-mock }:
3
4buildPythonPackage rec {
5 pname = "denonavr";
6 version = "0.7.10";
7
8 src = fetchFromGitHub {
9 owner = "scarface-4711";
10 repo = "denonavr";
11 rev = version;
12 sha256 = "078nhr69f68nfazhmkf2sl7wiadqx96a5ry3ziggiy1xs04vflj7";
13 };
14
15 propagatedBuildInputs = [ requests ];
16
17 doCheck = !isPy27;
18 checkInputs = [ pytest testtools requests-mock ];
19 checkPhase = ''
20 pytest tests
21 '';
22
23 meta = with lib; {
24 homepage = "https://github.com/scarface-4711/denonavr";
25 description = "Automation Library for Denon AVR receivers.";
26 license = licenses.mit;
27 maintainers = with maintainers; [ colemickens ];
28 };
29}