Files
nixpkgs/pkgs/development/python-modules/pydaikin/default.nix

66 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
freezegun,
netifaces,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
urllib3,
setuptools,
tenacity,
}:
buildPythonPackage rec {
pname = "pydaikin";
version = "2.17.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "fredrike";
repo = "pydaikin";
tag = "v${version}";
hash = "sha256-GSZJ7Upq43S8AC2U+8qRaPlcht/GndA2jm1mSVfEiaY=";
};
__darwinAllowLocalNetworking = true;
build-system = [ setuptools ];
dependencies = [
aiohttp
netifaces
urllib3
tenacity
];
nativeCheckInputs = [
aresponses
freezegun
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Failed: async def functions are not natively supported.
"test_power_sensors"
"test_device_factory"
];
pythonImportsCheck = [ "pydaikin" ];
meta = with lib; {
description = "Python Daikin HVAC appliances interface";
homepage = "https://github.com/fredrike/pydaikin";
changelog = "https://github.com/fredrike/pydaikin/releases/tag/${src.tag}";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
mainProgram = "pydaikin";
};
}