depot/third_party/nixpkgs/pkgs/development/python-modules/denonavr/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

63 lines
1.2 KiB
Nix

{
lib,
async-timeout,
asyncstdlib,
attrs,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
ftfy,
httpx,
netifaces,
pytest-asyncio,
pytestCheckHook,
pytest-httpx,
pytest-timeout,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "denonavr";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ol-iver";
repo = "denonavr";
rev = "refs/tags/${version}";
hash = "sha256-/K2pz3B4H205grDeuMWZmEeA4wJqKhP0XdpmbqFguTM=";
};
pythonRelaxDeps = [ "defusedxml" ];
build-system = [ setuptools ];
dependencies = [
asyncstdlib
attrs
defusedxml
ftfy
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 = licenses.mit;
maintainers = with maintainers; [ colemickens ];
};
}