aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/denonavr/default.nix
blob: 643556d8793efdf4196fbcde5283b8e95950ab51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests
, pytest, testtools, requests-mock }:

buildPythonPackage rec {
  pname = "denonavr";
  version = "0.8.1";

  src = fetchFromGitHub {
    owner = "scarface-4711";
    repo = "denonavr";
    rev = version;
    sha256 = "12g9w5674fmyf3f4plbhvpxpyhzw32pzwl0hvwswzrc2823xl6vx";
  };

  propagatedBuildInputs = [ requests ];

  doCheck = !isPy27;
  checkInputs = [ pytest testtools requests-mock ];
  checkPhase = ''
    pytest tests
  '';

  meta = with lib; {
    homepage = "https://github.com/scarface-4711/denonavr";
    description = "Automation Library for Denon AVR receivers.";
    license = licenses.mit;
    maintainers = with maintainers; [ colemickens ];
  };
}