mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
b3b74074b0
Diff: https://github.com/yozik04/nibe/compare/refs/tags/1.2.1...1.5.0 Changelog: https://github.com/yozik04/nibe/releases/tag/1.5.0
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, async-modbus
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, construct
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nibe";
|
|
version = "1.5.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yozik04";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-X2WcyBjJbS2WuaaYeBpWM+Tw4mmFOjNX/s070u8LN/4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
async-modbus
|
|
async-timeout
|
|
construct
|
|
tenacity
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|