default.nix (919B)
1 { 2 lib, 3 stdenv, 4 python3Packages, 5 fetchFromGitHub, 6 }: 7 8 python3Packages.buildPythonPackage (finalAttrs: { 9 pname = "contextily"; 10 version = "1.6.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "geopandas"; 15 repo = "contextily"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-Pkw21EOjRiIhdZvCY6JJ2T2yjShF9Io4NAQZIIjeKpU="; 18 }; 19 20 build-system = with python3Packages; [ setuptools-scm ]; 21 22 SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version; 23 24 dependencies = with python3Packages; [ 25 geopy 26 matplotlib 27 mercantile 28 pillow 29 rasterio 30 requests 31 joblib 32 xyzservices 33 ]; 34 35 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 36 37 doCheck = false; 38 39 meta = { 40 description = "Context geo-tiles in Python"; 41 homepage = "https://github.com/geopandas/contextily"; 42 license = lib.licenses.bsd3; 43 maintainers = [ lib.maintainers.sikmir ]; 44 }; 45 })
