depot/third_party/nixpkgs/pkgs/development/python-modules/morecantile/default.nix

55 lines
961 B
Nix
Raw Normal View History

{
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";
};
}