depot/third_party/nixpkgs/pkgs/development/python-modules/denonavr/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

59 lines
1.1 KiB
Nix

{ lib
, async-timeout
, asyncstdlib
, attrs
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, httpx
, netifaces
, pytest-asyncio
, pytestCheckHook
, pytest-httpx
, pytest-timeout
, pythonOlder
}:
buildPythonPackage rec {
pname = "denonavr";
version = "0.11.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ol-iver";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-iYekqqhrcN1rbclFVSbJSF5ky19WsBLKlTxAa2HULqY=";
};
propagatedBuildInputs = [
asyncstdlib
attrs
defusedxml
httpx
netifaces
] ++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
pytest-httpx
pytest-timeout
];
pythonImportsCheck = [
"denonavr"
];
meta = with lib; {
description = "Automation Library for Denon AVR receivers";
homepage = "https://github.com/ol-iver/denonavr";
changelog = "https://github.com/ol-iver/denonavr/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ colemickens ];
};
}