2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, aenum
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, httpx
|
|
|
|
, poetry-core
|
2022-02-10 20:34:41 +00:00
|
|
|
, pydantic
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpx
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, rich
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intellifire4py";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.6.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeeftor";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "intellifire4py";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-ovJUL8Z98F6gyKG04CoOiQE5dJbp9yTVHcTgniJBvOw=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
aenum
|
2023-11-16 04:20:00 +00:00
|
|
|
httpx
|
2022-02-10 20:34:41 +00:00
|
|
|
pydantic
|
2023-11-16 04:20:00 +00:00
|
|
|
rich
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"intellifire4py"
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to read Intellifire fireplace status data";
|
|
|
|
homepage = "https://github.com/jeeftor/intellifire4py";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|