mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
30 lines
975 B
Nix
Executable File
30 lines
975 B
Nix
Executable File
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, geopandas, matplotlib, networkx, numpy
|
|
, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy, gdal, rasterio}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "osmnx";
|
|
version = "1.2.2";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gboeing";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+dUv1QrUmCIOCyUyjYX1kJtZrPuSp3t9xz/sRV7ppgA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];
|
|
|
|
# requires network
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "osmnx" ];
|
|
|
|
meta = with lib; {
|
|
description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX.";
|
|
homepage = "https://github.com/gboeing/osmnx";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|
|
|