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..48121fe29099 --- /dev/null +++ b/pkgs/development/python-modules/ekey-bionyxpy/default.nix @@ -0,0 +1,46 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, +}: + +buildPythonPackage rec { + pname = "ekey-bionyxpy"; + version = "1.0.0"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + 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 = [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 79d3dc79a613..7e3cdc61bddc 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 { };