diff --git a/pkgs/development/python-modules/ekey-bionyxpy/default.nix b/pkgs/development/python-modules/ekey-bionyxpy/default.nix new file mode 100644 index 000000000000..322d87b4b185 --- /dev/null +++ b/pkgs/development/python-modules/ekey-bionyxpy/default.nix @@ -0,0 +1,43 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "ekey-bionyxpy"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "richardpolzer"; + repo = "ekey-bionyx-api"; + tag = version; + hash = "sha256-wKgIQp+E1fzOrp2Xx14RXvtxQMOb0rFkI55q2Rw+JNg="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "ekey_bionyxpy" ]; + + meta = { + description = "Interact with the bionyx third party API of the ekey biometric systems"; + homepage = "https://github.com/richardpolzer/ekey-bionyx-api"; + changelog = "https://github.com/richardpolzer/ekey-bionyx-api/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 8869697e9cde..b071fff87c55 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1457,7 +1457,8 @@ ]; "ekeybionyx" = ps: with ps; [ - ]; # missing inputs: ekey-bionyxpy + ekey-bionyxpy + ]; "electrasmart" = ps: with ps; [ pyelectra @@ -7241,6 +7242,7 @@ "efergy" "eheimdigital" "eight_sleep" + "ekeybionyx" "electrasmart" "electric_kiwi" "elevenlabs" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 383103bf87c2..9a06ae263ac5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4733,6 +4733,8 @@ self: super: with self; { eiswarnung = callPackage ../development/python-modules/eiswarnung { }; + ekey-bionyxpy = callPackage ../development/python-modules/ekey-bionyxpy { }; + elastic-apm = callPackage ../development/python-modules/elastic-apm { }; elastic-transport = callPackage ../development/python-modules/elastic-transport { };