depot/third_party/nixpkgs/pkgs/development/python-modules/denonavr/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
731 B
Nix

{ 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 ];
};
}