From d40732c5ee5f53580690b648b9911e0a2185985c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 18:34:58 +0100 Subject: [PATCH 1/2] python310Packages.kiwiki-client: init at 0.1.2 --- .../python-modules/kiwiki-client/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/kiwiki-client/default.nix diff --git a/pkgs/development/python-modules/kiwiki-client/default.nix b/pkgs/development/python-modules/kiwiki-client/default.nix new file mode 100644 index 000000000000..22da8a5236e2 --- /dev/null +++ b/pkgs/development/python-modules/kiwiki-client/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python-dateutil +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "kiwiki-client"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "c7h"; + repo = "kiwiki_client"; + rev = "refs/tags/${version}"; + hash = "sha256-CIBed8HzbUqUIzNy1lHxIgjneA6R8uKtmd43LU92M0Q="; + }; + + propagatedBuildInputs = [ + python-dateutil + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "kiwiki" + ]; + + meta = with lib; { + description = "Module to interact with the KIWI.KI API"; + homepage = "https://github.com/c7h/kiwiki_client"; + changelog = "https://github.com/c7h/kiwiki_client/releases/tag/${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5011e5ecb3ff..79e77719abce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5075,6 +5075,8 @@ self: super: with self; { kivy-garden = callPackage ../development/python-modules/kivy-garden { }; + kiwiki-client = callPackage ../development/python-modules/kiwiki-client { }; + kiwisolver = callPackage ../development/python-modules/kiwisolver { }; klaus = callPackage ../development/python-modules/klaus { }; From 778f278579934823969f6c3fae25a9328a9f0f7d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 18:47:25 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b72fa929a7db..a5f509fd65f6 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1776,7 +1776,8 @@ pykira ]; "kiwi" = ps: with ps; [ - ]; # missing inputs: kiwiki-client + kiwiki-client + ]; "kmtronic" = ps: with ps; [ pykmtronic ];