diff --git a/pkgs/development/python-modules/pajgps-api/default.nix b/pkgs/development/python-modules/pajgps-api/default.nix new file mode 100644 index 000000000000..88acca389028 --- /dev/null +++ b/pkgs/development/python-modules/pajgps-api/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + aiohttp, + pytestCheckHook, + python-dotenv, +}: + +buildPythonPackage (finalAttrs: { + pname = "pajgps-api"; + version = "0.3.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "skipperro"; + repo = "pajgps-api"; + tag = finalAttrs.version; + hash = "sha256-OJbWF5KcqyRud0Sfx7rME+mXIjiZQD9UxD3vpeV6RWY="; + }; + + build-system = [ hatchling ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytestCheckHook + python-dotenv + ]; + + pythonImportsCheck = [ "pajgps_api" ]; + + meta = { + description = "Python library to interact with the PAJ GPS API"; + homepage = "https://github.com/skipperro/pajgps-api"; + changelog = "https://github.com/skipperro/pajgps-api/releases/tag/${finalAttrs.src.tag}"; + 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 c3c9d914ccaf..0fc63c7c2aa2 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4978,7 +4978,8 @@ ]; "paj_gps" = ps: with ps; [ - ]; # missing inputs: pajgps-api + pajgps-api + ]; "palazzetti" = ps: with ps; [ pypalazzetti @@ -8441,6 +8442,7 @@ "ovo_energy" "owntracks" "p1_monitor" + "paj_gps" "palazzetti" "panasonic_viera" "panel_custom" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7611a01d2b6b..489632a3e923 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12242,6 +12242,8 @@ self: super: with self; { paintcompiler = callPackage ../development/python-modules/paintcompiler { }; + pajgps-api = callPackage ../development/python-modules/pajgps-api { }; + palace = callPackage ../development/python-modules/palace { }; palettable = callPackage ../development/python-modules/palettable { };