2020-01-17 07:58:30 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests
|
|
|
|
, pytest, testtools, requests-mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2020-04-06 20:43:53 +00:00
|
|
|
version = "0.8.1";
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scarface-4711";
|
|
|
|
repo = "denonavr";
|
|
|
|
rev = version;
|
2020-04-06 20:43:53 +00:00
|
|
|
sha256 = "12g9w5674fmyf3f4plbhvpxpyhzw32pzwl0hvwswzrc2823xl6vx";
|
2020-01-17 07:58:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|