62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
attrs,
|
|
click,
|
|
pydantic,
|
|
pyproj,
|
|
|
|
# tests
|
|
mercantile,
|
|
rasterio,
|
|
pytestCheckHook,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "morecantile";
|
|
version = "7.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "developmentseed";
|
|
repo = "morecantile";
|
|
tag = version;
|
|
hash = "sha256-Hx4duNbTuRfOmNBLN9J6/6URe57aPc8+3SJA7rbW5zs=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
attrs
|
|
click
|
|
pydantic
|
|
pyproj
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mercantile
|
|
pytestCheckHook
|
|
rasterio
|
|
versionCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "morecantile" ];
|
|
|
|
meta = {
|
|
description = "Construct and use map tile grids in different projection";
|
|
homepage = "https://developmentseed.org/morecantile";
|
|
downloadPage = "https://github.com/developmentseed/morecantile";
|
|
changelog = "https://github.com/developmentseed/morecantile/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.geospatial ];
|
|
mainProgram = "morecantile";
|
|
};
|
|
}
|