depot/third_party/nixpkgs/pkgs/development/python-modules/morecantile/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

60 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
attrs,
click,
flit,
mercantile,
pydantic,
pyproj,
rasterio,
}:
buildPythonPackage rec {
pname = "morecantile";
version = "5.4.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "developmentseed";
repo = "morecantile";
rev = version;
hash = "sha256-kUAde+6IUu95tFHFCB6kWoYsRf9GxR+gRJki/tvhIaY=";
};
nativeBuildInputs = [ flit ];
propagatedBuildInputs = [
attrs
click
pydantic
pyproj
];
nativeCheckInputs = [
mercantile
pytestCheckHook
rasterio
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# https://github.com/developmentseed/morecantile/issues/156
"test_tiles_when_tms_bounds_and_provided_bounds_cross_antimeridian"
];
pythonImportsCheck = [ "morecantile" ];
meta = {
description = "Construct and use map tile grids in different projection";
homepage = "https://developmentseed.org/morecantile/";
license = lib.licenses.mit;
maintainers = lib.teams.geospatial.members;
mainProgram = "morecantile";
};
}