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>
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aenum,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
aiohttp,
|
|
aioresponses,
|
|
hatchling,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytest-httpx,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
rich,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intellifire4py";
|
|
version = "4.2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jeeftor";
|
|
repo = "intellifire4py";
|
|
tag = "v${version}";
|
|
hash = "sha256-kCZkIR8SmrLTm86M87juV7oQ+O01AA4pzkBMnKCnbNA=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aenum
|
|
pydantic
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "intellifire4py" ];
|
|
|
|
meta = {
|
|
description = "Module to read Intellifire fireplace status data";
|
|
homepage = "https://github.com/jeeftor/intellifire4py";
|
|
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/v${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "intellifire4py";
|
|
|
|
};
|
|
}
|