depot/third_party/nixpkgs/pkgs/development/python-modules/xyzservices/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

47 lines
914 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mercantile,
pytestCheckHook,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "xyzservices";
version = "2024.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-agTxFIem+3fZKpiYTNEH+9kVf9XmX5Ka3Zw9bmBO6Iw=";
};
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;
};
}