1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, geopandas, matplotlib, networkx, numpy
2, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy, gdal, rasterio}:
3
4buildPythonPackage rec {
5 pname = "osmnx";
6 version = "1.2.2";
7 disabled = pythonOlder "3.8";
8
9 src = fetchFromGitHub {
10 owner = "gboeing";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-+dUv1QrUmCIOCyUyjYX1kJtZrPuSp3t9xz/sRV7ppgA=";
14 };
15
16 propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];
17
18 # requires network
19 doCheck = false;
20 pythonImportsCheck = [ "osmnx" ];
21
22 meta = with lib; {
23 description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX.";
24 homepage = "https://github.com/gboeing/osmnx";
25 license = licenses.mit;
26 maintainers = with maintainers; [ psyanticy ];
27 };
28}
29