fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
54 lines
961 B
Nix
54 lines
961 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
|
|
attrs,
|
|
click,
|
|
flit,
|
|
mercantile,
|
|
pydantic,
|
|
pyproj,
|
|
rasterio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "morecantile";
|
|
version = "5.3.0";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "developmentseed";
|
|
repo = "morecantile";
|
|
rev = version;
|
|
hash = "sha256-F7xYQrOngoRsZjmS6ZHRGN0/GD53AYcMQzyY1LZ1O7I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit ];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
click
|
|
pydantic
|
|
pyproj
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mercantile
|
|
pytestCheckHook
|
|
rasterio
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|