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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.1.30";
|
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeeftor";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CIcudKyRPVJX6QvWk6dBbYnO5EULREDhaflJTAfJEvc=";
|
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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"intellifire4py"
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
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";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jeeftor/intellifire4py/blob/${version}/CHANGELOG";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|