567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
aresponses,
|
|
async-modbus,
|
|
async-timeout,
|
|
asyncclick,
|
|
buildPythonPackage,
|
|
construct,
|
|
exceptiongroup,
|
|
fetchFromGitHub,
|
|
pandas,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-slugify,
|
|
pythonOlder,
|
|
setuptools,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nibe";
|
|
version = "2.19.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yozik04";
|
|
repo = "nibe";
|
|
tag = version;
|
|
hash = "sha256-1Awf/7AUSsLo9O2GrVvdlHm5Fcj2CQ7TdKY152bogfQ=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "async-modbus" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
async-modbus
|
|
async-timeout
|
|
construct
|
|
exceptiongroup
|
|
tenacity
|
|
];
|
|
|
|
optional-dependencies = {
|
|
convert = [
|
|
pandas
|
|
python-slugify
|
|
];
|
|
cli = [ asyncclick ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "nibe" ];
|
|
|
|
meta = {
|
|
description = "Library for the communication with Nibe heatpumps";
|
|
homepage = "https://github.com/yozik04/nibe";
|
|
changelog = "https://github.com/yozik04/nibe/releases/tag/${version}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|