depot/third_party/nixpkgs/pkgs/development/python-modules/denonavr/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

51 lines
934 B
Nix

{ lib
, asyncstdlib
, attrs
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, httpx
, netifaces
, pytest-asyncio
, pytestCheckHook
, pytest-httpx
, pytest-timeout
, pythonOlder
}:
buildPythonPackage rec {
pname = "denonavr";
version = "0.10.9";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "scarface-4711";
repo = pname;
rev = version;
sha256 = "sha256-Y0sFRKnKZAdP95EyE3h1g92AJeT0Xkshjjwfv/vnfW8=";
};
propagatedBuildInputs = [
asyncstdlib
attrs
defusedxml
httpx
netifaces
];
checkInputs = [
pytest-asyncio
pytestCheckHook
pytest-httpx
pytest-timeout
];
pythonImportsCheck = [ "denonavr" ];
meta = with lib; {
description = "Automation Library for Denon AVR receivers";
homepage = "https://github.com/scarface-4711/denonavr";
license = with licenses; [ mit ];
maintainers = with maintainers; [ colemickens ];
};
}