From f118df5ce2d4c1561ca631115b139d0265294ad7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 30 Mar 2023 09:39:31 +0200 Subject: [PATCH] python310Packages.iceportal: init at 1.1.1 --- .../python-modules/iceportal/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/iceportal/default.nix diff --git a/pkgs/development/python-modules/iceportal/default.nix b/pkgs/development/python-modules/iceportal/default.nix new file mode 100644 index 000000000000..251f13727895 --- /dev/null +++ b/pkgs/development/python-modules/iceportal/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, httpx +, pytest-asyncio +, pytest-httpx +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "iceportal"; + version = "1.1.1"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "home-assistant-ecosystem"; + repo = "python-iceportal"; + rev = "refs/tags/${version}"; + hash = "sha256-edG4tF5nYaEOCcbunetYNL9moi9vA75IOkorDuLEx1c="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + httpx + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-httpx + pytestCheckHook + ]; + + pythonImportsCheck = [ + "iceportal" + ]; + + meta = with lib; { + description = "Library for getting data from the ICE Portal"; + homepage = "https://github.com/home-assistant-ecosystem/python-iceportal"; + changelog = "https://github.com/home-assistant-ecosystem/python-iceportal/releases/tag/${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7b04f6296d33..64de09082752 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4608,6 +4608,8 @@ self: super: with self; { icecream = callPackage ../development/python-modules/icecream { }; + iceportal = callPackage ../development/python-modules/iceportal { }; + icmplib = callPackage ../development/python-modules/icmplib { }; icnsutil = callPackage ../development/python-modules/icnsutil { };