mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
4eceab09f4
Diff: https://github.com/iMicknl/python-overkiz-api/compare/refs/tags/v1.9.1...v1.10.1 Changelog: https://github.com/iMicknl/python-overkiz-api/releases/tag/v1.10.1
67 lines
1.3 KiB
Nix
67 lines
1.3 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.10.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iMicknl";
|
|
repo = "python-overkiz-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tb0xU1H1VrWTuObCg1+mFkzawAzrknO3fER7cN2St7U=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
attrs
|
|
backoff
|
|
backports-strenum
|
|
boto3
|
|
pyhumps
|
|
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 ];
|
|
};
|
|
}
|