depot/third_party/nixpkgs/pkgs/development/python-modules/xyzservices/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

48 lines
913 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mercantile
, pytestCheckHook
, requests
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xyzservices";
version = "2023.7.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-DskodCIn1vXUNn6ntFf8/tlDQp9N4pSbWwKoLN9VadY=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
disabledTests = [
# requires network connections
"test_free_providers"
];
pythonImportsCheck = [
"xyzservices.providers"
];
nativeCheckInputs = [
mercantile
pytestCheckHook
requests
];
meta = with lib; {
changelog = "https://github.com/geopandas/xyzservices/releases/tag/${version}";
description = "Source of XYZ tiles providers";
homepage = "https://github.com/geopandas/xyzservices";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}