mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
58 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|