Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchPypi 5, mercantile 6, pytestCheckHook 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "xyzservices"; 12 version = "2023.2.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-M0K7pBDXlBKQ7tDlii5arbD3uXhj7EKDsoPEBu5yOig="; 18 }; 19 20 disabledTests = [ 21 # requires network connections 22 "test_free_providers" 23 ]; 24 25 pythonImportsCheck = [ 26 "xyzservices.providers" 27 ]; 28 29 nativeCheckInputs = [ 30 mercantile 31 pytestCheckHook 32 requests 33 ]; 34 35 meta = with lib; { 36 changelog = "https://github.com/geopandas/xyzservices/releases/tag/${version}"; 37 description = "Source of XYZ tiles providers"; 38 homepage = "https://github.com/geopandas/xyzservices"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ ]; 41 }; 42}