diff --git a/pkgs/by-name/ge/geobug/package.nix b/pkgs/by-name/ge/geobug/package.nix new file mode 100644 index 000000000000..f211688b96d8 --- /dev/null +++ b/pkgs/by-name/ge/geobug/package.nix @@ -0,0 +1,63 @@ +{ + lib, + python3Packages, + fetchFromCodeberg, + gobject-introspection, + wrapGAppsHook4, + geoclue2, + libadwaita, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "geobug"; + version = "0.9.1"; + pyproject = true; + + src = fetchFromCodeberg { + owner = "tpikonen"; + repo = "geobug"; + tag = finalAttrs.version; + hash = "sha256-u9+tCKE5zhX6PGl1IsYcqCT0Q1p/eP+V68N6ggAgDoQ="; + }; + + nativeBuildInputs = [ + gobject-introspection + wrapGAppsHook4 + ]; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = + (with python3Packages; [ + gpxpy + pygobject3 + ]) + ++ [ + geoclue2 + libadwaita + ]; + + pythonImportsCheck = [ + "geobug" + ]; + + strictDeps = true; + + __structuredAttrs = true; + + meta = { + description = "Adaptive GeoClue client"; + longDescription = '' + Geobug is an adaptive client for GeoClue, the geolocation D-bus server from freedesktop.org. It can display your location information (coordinates, speed etc.) and save a track of your movements to a GPX-file. + ''; + homepage = "https://codeberg.org/tpikonen/geobug"; + changelog = "https://codeberg.org/tpikonen/geobug/releases/tag/${finalAttrs.version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + Luflosi + ]; + mainProgram = "geobug"; + }; +})