2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, backoff
|
2023-08-22 20:05:09 +00:00
|
|
|
, backports-strenum
|
2022-02-20 05:27:41 +00:00
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pyhumps
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, warrant-lite
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyoverkiz";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.10.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
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}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-tb0xU1H1VrWTuObCg1+mFkzawAzrknO3fER7cN2St7U=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"'
|
|
|
|
'';
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|