depot/third_party/nixpkgs/pkgs/development/python-modules/nibe/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

60 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aresponses
, async-modbus
, async-timeout
, buildPythonPackage
, construct
, exceptiongroup
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, tenacity
}:
buildPythonPackage rec {
pname = "nibe";
version = "2.3.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "yozik04";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-IrPEXrrnbxJcIuy+Xq4iVEEblJ85d7M99zGr1DDJS2M=";
};
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 ];
};
}