depot/third_party/nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix

57 lines
1 KiB
Nix
Raw Normal View History

{ lib
, aenum
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pydantic
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, pythonOlder
, rich
}:
buildPythonPackage rec {
pname = "intellifire4py";
version = "3.1.30";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jeeftor";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-CIcudKyRPVJX6QvWk6dBbYnO5EULREDhaflJTAfJEvc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aenum
httpx
pydantic
rich
];
pythonImportsCheck = [
"intellifire4py"
];
nativeCheckInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
meta = with lib; {
description = "Module to read Intellifire fireplace status data";
homepage = "https://github.com/jeeftor/intellifire4py";
changelog = "https://github.com/jeeftor/intellifire4py/blob/${version}/CHANGELOG";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}