13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, attrs
|
|
, backoff
|
|
, boto3
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pyhumps
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, warrant-lite
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyoverkiz";
|
|
version = "1.5.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iMicknl";
|
|
repo = "python-overkiz-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-xshqcAXj6lGpnTIHhx1A2c+Vso1q8kAwZW7v6XIilj0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
aiohttp
|
|
backoff
|
|
pyhumps
|
|
boto3
|
|
warrant-lite
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'backoff = "^1.10.0"' 'backoff = "*"'
|
|
'';
|
|
|
|
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";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|