2020-07-03 19:42:01 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces
|
2020-01-17 07:58:30 +00:00
|
|
|
, pytest, testtools, requests-mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "denonavr";
|
2020-07-03 19:42:01 +01:00
|
|
|
version = "0.9.3";
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scarface-4711";
|
|
|
|
repo = "denonavr";
|
|
|
|
rev = version;
|
2020-07-03 19:42:01 +01:00
|
|
|
sha256 = "0s8v918n6xn44r2mrq5hqbf0znpz64clq7a1jakkgz9py8bi6vnn";
|
2020-01-17 07:58:30 +00:00
|
|
|
};
|
|
|
|
|
2020-07-03 19:42:01 +01:00
|
|
|
propagatedBuildInputs = [ requests netifaces ];
|
2020-01-17 07:58:30 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|