depot/third_party/nixpkgs/pkgs/development/python-modules/nibe/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, aiohttp
, aresponses
, async-modbus
, async-timeout
, buildPythonPackage
, construct
, exceptiongroup
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, tenacity
}:
buildPythonPackage rec {
pname = "nibe";
version = "2.5.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "yozik04";
repo = "nibe";
rev = "refs/tags/${version}";
hash = "sha256-PCfodp8gyjOUgb4FthMlbanbEtJuc6axM8DkQJ/ykLg=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
async-modbus
async-timeout
construct
exceptiongroup
tenacity
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"nibe"
];
meta = with lib; {
description = "Library for the communication with Nibe heatpumps";
homepage = "https://github.com/yozik04/nibe";
changelog = "https://github.com/yozik04/nibe/releases/tag/${version}";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}