526fa7eefb
Diff: https://github.com/iMicknl/python-overkiz-api/compare/refs/tags/v1.7.4...v1.7.6 Changelog: https://github.com/iMicknl/python-overkiz-api/releases/tag/v1.7.6
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, attrs
|
|
, backoff
|
|
, boto3
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pyhumps
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, warrant-lite
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyoverkiz";
|
|
version = "1.7.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iMicknl";
|
|
repo = "python-overkiz-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nmXOmoPH8w4Soj8lhI7wl3uYVmKw3xSuIkmCF0XI7RI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
aiohttp
|
|
backoff
|
|
pyhumps
|
|
boto3
|
|
warrant-lite
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|