2020-07-03 19:42:01 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces
|
2020-12-30 15:16:20 +00:00
|
|
|
, pytestCheckHook, testtools, requests-mock }:
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2021-01-03 15:16:03 +00:00
|
|
|
version = "0.9.10";
|
2020-12-30 15:16:20 +00:00
|
|
|
disabled = isPy27;
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scarface-4711";
|
|
|
|
repo = "denonavr";
|
|
|
|
rev = version;
|
2021-01-03 15:16:03 +00:00
|
|
|
sha256 = "sha256-3ap8F3ayBTpaR98md+gT0+hkIWlFBNxStTGWT5AL//A=";
|
2020-01-17 07:58:30 +00:00
|
|
|
};
|
|
|
|
|
2020-12-30 15:16:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
netifaces
|
|
|
|
];
|
2020-01-17 07:58:30 +00:00
|
|
|
|
2020-12-30 15:16:20 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
testtools
|
|
|
|
requests-mock
|
|
|
|
];
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scarface-4711/denonavr";
|
|
|
|
description = "Automation Library for Denon AVR receivers.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|