blob: 7b465d78510d4024c9c2ff8fe9f27451a7a811a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
click,
# tests
hypothesis,
pytestCheckHook,
versionCheckHook,
}:
buildPythonPackage rec {
pname = "mercantile";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mapbox";
repo = "mercantile";
tag = version;
hash = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w=";
};
build-system = [
setuptools
];
dependencies = [
click
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
versionCheckHook
];
disabledTests = [
# AssertionError CLI exists with non-zero error code
# This is a regression introduced by https://github.com/NixOS/nixpkgs/pull/448189
"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";
changelog = "https://github.com/mapbox/mercantile/blob/${version}/CHANGES.txt";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sikmir ];
};
}
|