nixpkgs/pkgs/development/python-modules/denonavr/default.nix
Martin Weinelt 70e8dbcb1d python3Packages.denonavr: 0.9.3 -> 0.9.9
Disable on Python 2.7, convert tests to pytestCheckHook.
2020-12-30 11:01:55 -08:00

34 lines
753 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces
, pytestCheckHook, testtools, requests-mock }:
buildPythonPackage rec {
pname = "denonavr";
version = "0.9.9";
disabled = isPy27;
src = fetchFromGitHub {
owner = "scarface-4711";
repo = "denonavr";
rev = version;
sha256 = "08zh8rdadmxcgr707if6g5k5j2xz21s6jrn4kxh1c7xqpgdfggd9";
};
propagatedBuildInputs = [
requests
netifaces
];
checkInputs = [
pytestCheckHook
testtools
requests-mock
];
meta = with lib; {
homepage = "https://github.com/scarface-4711/denonavr";
description = "Automation Library for Denon AVR receivers.";
license = licenses.mit;
maintainers = with maintainers; [ colemickens ];
};
}