2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
attrs,
|
|
|
|
backoff,
|
|
|
|
backports-strenum,
|
|
|
|
boto3,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pyhumps,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
warrant-lite,
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyoverkiz";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.13.11";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iMicknl";
|
|
|
|
repo = "python-overkiz-api";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-N1PcyaVvPBX9ahHedR7pow6jAKwVOMmKqddWhYLtT8w=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"'
|
2022-10-21 18:38:19 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-02-20 05:27:41 +00:00
|
|
|
aiohttp
|
2023-08-22 20:05:09 +00:00
|
|
|
attrs
|
2022-02-20 05:27:41 +00:00
|
|
|
backoff
|
2023-08-22 20:05:09 +00:00
|
|
|
backports-strenum
|
2022-02-20 05:27:41 +00:00
|
|
|
boto3
|
2023-08-22 20:05:09 +00:00
|
|
|
pyhumps
|
2022-02-20 05:27:41 +00:00
|
|
|
warrant-lite
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyoverkiz" ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs";
|
|
|
|
homepage = "https://github.com/iMicknl/python-overkiz-api";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/iMicknl/python-overkiz-api/releases/tag/v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|