diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/intellifire4py')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix b/nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix new file mode 100644 index 000000000000..15045b4695c4 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix @@ -0,0 +1,57 @@ +{ lib +, aenum +, buildPythonPackage +, fetchFromGitHub +, httpx +, poetry-core +, pydantic +, pytest-asyncio +, pytest-httpx +, pytestCheckHook +, pythonOlder +, rich +}: + +buildPythonPackage rec { + pname = "intellifire4py"; + version = "3.6.1"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "jeeftor"; + repo = "intellifire4py"; + rev = "refs/tags/v${version}"; + hash = "sha256-ovJUL8Z98F6gyKG04CoOiQE5dJbp9yTVHcTgniJBvOw="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aenum + httpx + pydantic + rich + ]; + + nativeCheckInputs = [ + 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 ]; + }; +} |