2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
|
2021-02-16 00:26:40 +00:00
|
|
|
, pandas, requests, Rtree, shapely, folium, scikitlearn, scipy}:
|
2018-09-19 16:14:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "osmnx";
|
2019-03-11 18:22:41 +00:00
|
|
|
version = "0.9";
|
2018-09-19 16:14:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gboeing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-03-11 18:22:41 +00:00
|
|
|
sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
|
2018-09-19 16:14:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikitlearn scipy ];
|
|
|
|
|
2021-02-16 00:26:40 +00:00
|
|
|
# requires network
|
2018-09-19 16:14:37 +01:00
|
|
|
doCheck = false;
|
2021-02-16 00:26:40 +00:00
|
|
|
pythonImportsCheck = [ "osmnx" ];
|
2018-09-19 16:14:37 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-19 16:14:37 +01:00
|
|
|
description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gboeing/osmnx";
|
2018-09-19 16:14:37 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|