nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix
2024-03-17 20:06:58 +01:00

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";
homepage = "https://github.com/jeeftor/intellifire4py";
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}