default.nix (790B)
1 { lib, stdenv, python3Packages, fetchFromGitHub }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "contextily"; 5 version = "1.3.0"; 6 disabled = python3Packages.pythonOlder "3.6"; 7 8 src = fetchFromGitHub { 9 owner = "geopandas"; 10 repo = "contextily"; 11 rev = "v${version}"; 12 hash = "sha256-s8F70I9xrNvYqS8t2kWX7cgjfGqGYLfiAZAYvaKVS6s="; 13 }; 14 15 propagatedBuildInputs = with python3Packages; [ 16 geopy 17 matplotlib 18 mercantile 19 pillow 20 rasterio 21 requests 22 joblib 23 xyzservices 24 ]; 25 26 doCheck = false; 27 28 meta = with lib; { 29 description = "Context geo-tiles in Python"; 30 homepage = "https://github.com/geopandas/contextily"; 31 license = licenses.bsd3; 32 maintainers = [ maintainers.sikmir ]; 33 broken = stdenv.isDarwin; # xyzservices 34 }; 35 }