Files
nixpkgs/pkgs/development/python-modules/elgato/default.nix
2026-10-21 20:20:38 +02:00

77 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
cryptography,
click,
fetchFromGitHub,
mashumaro,
orjson,
poetry-core,
pyprojectVersionPatchHook,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
rich,
syrupy,
typer,
yarl,
zeroconf,
}:
buildPythonPackage (finalAttrs: {
pname = "elgato";
version = "6.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "frenck";
repo = "python-elgato";
tag = "v${finalAttrs.version}";
hash = "sha256-Dnbz3ssvxX2nR17W0UP2zW6rebbinr5JeI2tfwjl6o4=";
};
patches = [
./typer-0-27-2.patch
];
nativeBuildInputs = [ pyprojectVersionPatchHook ];
build-system = [ poetry-core ];
dependencies = [
aiohttp
cryptography
click
mashumaro
orjson
yarl
];
optional-dependencies.cli = [
rich
typer
zeroconf
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
syrupy
]
++ finalAttrs.passthru.optional-dependencies.cli;
pythonImportsCheck = [ "elgato" ];
meta = {
description = "Python client for Elgato Key Lights";
homepage = "https://github.com/frenck/python-elgato";
changelog = "https://github.com/frenck/python-elgato/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})