at 23.11-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, folium 5, gdal 6, geopandas 7, matplotlib 8, networkx 9, numpy 10, pandas 11, pythonOlder 12, rasterio 13, requests 14, rtree 15, scikit-learn 16, scipy 17, shapely 18}: 19 20buildPythonPackage rec { 21 pname = "osmnx"; 22 version = "1.3.0"; 23 format = "setuptools"; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchFromGitHub { 28 owner = "gboeing"; 29 repo = pname; 30 rev = "refs/tags/v${version}"; 31 hash = "sha256-17duWrg48Qb4ojYYFX4HBpPLeVgHn1WV84KVATvBnzY="; 32 }; 33 34 propagatedBuildInputs = [ 35 geopandas 36 matplotlib 37 networkx 38 numpy 39 pandas 40 requests 41 rtree 42 shapely 43 folium 44 scikit-learn 45 scipy 46 gdal 47 rasterio 48 ]; 49 50 # Tests require network 51 doCheck = false; 52 53 pythonImportsCheck = [ 54 "osmnx" 55 ]; 56 57 meta = with lib; { 58 description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX."; 59 homepage = "https://github.com/gboeing/osmnx"; 60 changelog = "https://github.com/gboeing/osmnx/blob/v${version}/CHANGELOG.md"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ psyanticy ]; 63 }; 64} 65