587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, aenum
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, aioresponses
|
|
, poetry-core
|
|
, pydantic
|
|
, pytest-asyncio
|
|
, pytest-httpx
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rich
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intellifire4py";
|
|
version = "4.1.9";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jeeftor";
|
|
repo = "intellifire4py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-dMhm2gntLV7ev6UIfHFMATytZo5blTlALuh9sBirkqI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aenum
|
|
pydantic
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"intellifire4py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to read Intellifire fireplace status data";
|
|
mainProgram = "intellifire4py";
|
|
homepage = "https://github.com/jeeftor/intellifire4py";
|
|
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|