From e18f068f82d412ab4133e10a00842a2e889437d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 6 Aug 2024 03:11:59 -0700 Subject: [PATCH] python312Packages.hass-splunk: init at 0.1.2 --- .../python-modules/hass-splunk/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/hass-splunk/default.nix diff --git a/pkgs/development/python-modules/hass-splunk/default.nix b/pkgs/development/python-modules/hass-splunk/default.nix new file mode 100644 index 000000000000..b5183c52b145 --- /dev/null +++ b/pkgs/development/python-modules/hass-splunk/default.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, +}: + +buildPythonPackage rec { + pname = "hass-splunk"; + version = "0.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Bre77"; + repo = "hass_splunk"; + rev = "refs/tags/v${version}"; + hash = "sha256-bgF6gHAA57MiWdmpwilGa+l05/ETKdpyi2naVagkRlc="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + pythonImportsCheck = [ "hass_splunk" ]; + + # upstream has no tests + doCheck = false; + + meta = { + description = "Async single threaded connector to Splunk HEC using an asyncio session"; + homepage = "https://github.com/Bre77/hass_splunk"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 686ad65a8bc0..c3b24d2fac95 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5457,6 +5457,8 @@ self: super: with self; { hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; + hass-splunk = callPackage ../development/python-modules/hass-splunk { }; + hassil = callPackage ../development/python-modules/hassil { }; hatasmota = callPackage ../development/python-modules/hatasmota { };