nixpkgs/pkgs/development/python-modules/pyoverkiz/default.nix
2024-10-16 15:39:45 +02:00

58 lines
1.2 KiB
Nix

{
lib,
aiohttp,
attrs,
backoff,
backports-strenum,
boto3,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyhumps,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
warrant-lite,
}:
buildPythonPackage rec {
pname = "pyoverkiz";
version = "1.14.2";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "iMicknl";
repo = "python-overkiz-api";
rev = "refs/tags/v${version}";
hash = "sha256-6ytfmdyVd7AFIWLSKCDpPHEKCy/EsGnOS+1i/bTO0Xs=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
attrs
backoff
boto3
pyhumps
warrant-lite
] ++ lib.optionals (pythonOlder "3.11") [ backports-strenum ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pyoverkiz" ];
meta = with lib; {
description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs";
homepage = "https://github.com/iMicknl/python-overkiz-api";
changelog = "https://github.com/iMicknl/python-overkiz-api/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}