depot/third_party/nixpkgs/pkgs/development/python-modules/xyzservices/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
914 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mercantile,
pytestCheckHook,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "xyzservices";
version = "2024.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-WMG9q0JX0lUbnvkc1IVx93t8TSvEW/XjwFrJezpNcoI=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
pytestFlagsArray = [
# requires network connections
"-m 'not request'"
];
pythonImportsCheck = [ "xyzservices.providers" ];
nativeCheckInputs = [
mercantile
pytestCheckHook
requests
];
meta = {
changelog = "https://github.com/geopandas/xyzservices/releases/tag/${version}";
description = "Source of XYZ tiles providers";
homepage = "https://github.com/geopandas/xyzservices";
license = lib.licenses.bsd3;
maintainers = lib.teams.geospatial.members;
};
}