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