From 1439a850c605ca7cd4c8243a42c84a13f5357e2b Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 21 Oct 2025 07:25:50 +0000 Subject: [PATCH] python3Packages.mercantile: cleanup --- .../python-modules/mercantile/default.nix | 61 +++++++++++++++++-- 1 file changed, 55 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/mercantile/default.nix b/pkgs/development/python-modules/mercantile/default.nix index 9d8f59cbef96..3d8485817d09 100644 --- a/pkgs/development/python-modules/mercantile/default.nix +++ b/pkgs/development/python-modules/mercantile/default.nix @@ -2,7 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + setuptools, + + # dependencies click, + + # tests pytestCheckHook, hypothesis, }: @@ -10,27 +17,69 @@ buildPythonPackage rec { pname = "mercantile"; version = "1.2.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "mapbox"; repo = "mercantile"; - rev = version; + tag = version; hash = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w="; }; - propagatedBuildInputs = [ click ]; + build-system = [ + setuptools + ]; + + dependencies = [ + click + ]; nativeCheckInputs = [ pytestCheckHook hypothesis ]; - meta = with lib; { + disabledTests = [ + "test_cli_bounding_tile" + "test_cli_bounding_tile2" + "test_cli_bounding_tile_bbox" + "test_cli_bounding_tile_geosjon" + "test_cli_children" + "test_cli_multi_bounding_tile" + "test_cli_multi_bounding_tile_seq" + "test_cli_neighbors" + "test_cli_parent" + "test_cli_parent_depth" + "test_cli_parent_failure" + "test_cli_parent_multidepth" + "test_cli_quadkey_from_mixed" + "test_cli_quadkey_from_quadkeys" + "test_cli_quadkey_from_tiles" + "test_cli_shapes" + "test_cli_shapes_collect" + "test_cli_shapes_compact" + "test_cli_shapes_failure" + "test_cli_shapes_indentation" + "test_cli_strict_overlap_contain" + "test_cli_tiles_bad_bounds" + "test_cli_tiles_bounding_tiles_seq" + "test_cli_tiles_bounding_tiles_z0" + "test_cli_tiles_geosjon" + "test_cli_tiles_implicit_stdin" + "test_cli_tiles_multi_bounds" + "test_cli_tiles_multi_bounds_seq" + "test_cli_tiles_no_bounds" + "test_cli_tiles_point_geojson" + "test_cli_tiles_points" + "test_cli_tiles_seq" + ]; + + meta = { description = "Spherical mercator tile and coordinate utilities"; mainProgram = "mercantile"; homepage = "https://github.com/mapbox/mercantile"; - license = licenses.bsd3; - maintainers = with maintainers; [ sikmir ]; + changelog = "https://github.com/mapbox/mercantile/blob/${version}/CHANGES.txt"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ sikmir ]; }; }