commit b4ea4b0c57e8f5ef2cb051f526fd5e8677cce95c
parent c3e5bc7483a32e9d75e86e086c2a9e626ca536db
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 29 Jun 2025 15:35:46 +0400
Add osmviz
Diffstat:
2 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -500,6 +500,7 @@ lib.makeScope newScope (
osmium-surplus = callPackage ./osm/osmium-surplus { };
osmosis = callPackage ./osm/osmosis { };
osmptparser = callPackage ./osm/osmptparser { };
+ osmviz = callPackage ./osm/osmviz { };
osmwalkthrough = callPackage ./osm/osmwalkthrough { };
overpassforge = callPackage ./osm/overpassforge { };
phyghtmap = callPackage ./osm/phyghtmap { };
diff --git a/pkgs/osm/osmviz/default.nix b/pkgs/osm/osmviz/default.nix
@@ -0,0 +1,53 @@
+{
+ lib,
+ python3Packages,
+ fetchFromGitHub,
+}:
+
+python3Packages.buildPythonPackage rec {
+ pname = "osmviz";
+ version = "4.4.0";
+ pyproject = true;
+
+ src = fetchFromGitHub {
+ owner = "hugovk";
+ repo = "osmviz";
+ tag = version;
+ hash = "sha256-rEbCMF5G4C/xJTEqO0XwV+VfoL63alh5IzjOdQ34NzU=";
+ };
+
+ build-system = with python3Packages; [
+ hatchling
+ hatch-vcs
+ ];
+
+ nativeCheckInputs = with python3Packages; [
+ pytestCheckHook
+ pytest-cov-stub
+ coverage
+ pillow
+ pygame
+ ];
+
+ pytestFlagsArray = [
+ "-W"
+ "ignore::DeprecationWarning"
+ ];
+
+ disabledTests = [
+ "test_pil"
+ "test_retrieve_tile_image"
+ "test_create_osm_image"
+ "test_sim"
+ "test_sim_one"
+ ];
+
+ pythonImportsCheck = [ "osmviz" ];
+
+ meta = {
+ description = "An OpenStreetMap Visualization Toolkit for Python";
+ homepage = "https://github.com/hugovk/osmviz";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+}