From ae69e30d0b1bc93b321932fb3d0ebfaf358ef65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 3 Nov 2025 11:33:51 -0800 Subject: [PATCH] python3Packages.actron-neo-api: init at 0.1.84 --- .../python-modules/actron-neo-api/default.nix | 58 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/development/python-modules/actron-neo-api/default.nix diff --git a/pkgs/development/python-modules/actron-neo-api/default.nix b/pkgs/development/python-modules/actron-neo-api/default.nix new file mode 100644 index 000000000000..bd64ad0e9547 --- /dev/null +++ b/pkgs/development/python-modules/actron-neo-api/default.nix @@ -0,0 +1,58 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + pydantic, + pytest-asyncio, + pytestCheckHook, + setuptools, + setuptools-scm, +}: + +buildPythonPackage rec { + pname = "actron-neo-api"; + version = "0.1.84"; + pyproject = true; + + src = fetchFromGitHub { + owner = "kclif9"; + repo = "actronneoapi"; + tag = "v${version}"; + hash = "sha256-ihIg264ZX0tCfRwVLkiq62ke2G125ObcrVabPCDrc4c="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + aiohttp + pydantic + ]; + + pythonImportsCheck = [ "actron_neo_api" ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + disabledTests = [ + # test hangs + "test_poll_for_token_pending" + # AttributeError: property 'authorization_header' of 'ActronAirOAuth2DeviceCodeAuth' object has no setter + "test_lazy_token_refres" + # ActronAirAuthError: Refresh token is required to refresh the access token + "test_get_user_info" + ]; + + meta = { + changelog = "https://github.com/kclif9/actronneoapi/releases/tag/${src.tag}"; + description = "Communicate with Actron Air systems via the Actron Neo API"; + homepage = "https://github.com/kclif9/actronneoapi"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f22805eed7cc..b672c25ca6b2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -59,6 +59,8 @@ self: super: with self; { actdiag = callPackage ../development/python-modules/actdiag { }; + actron-neo-api = callPackage ../development/python-modules/actron-neo-api { }; + acunetix = callPackage ../development/python-modules/acunetix { }; adafruit-board-toolkit = callPackage ../development/python-modules/adafruit-board-toolkit { };