depot/third_party/nixpkgs/pkgs/development/python-modules/osmnx/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

65 lines
1.1 KiB
Nix
Executable file

{ lib
, buildPythonPackage
, fetchFromGitHub
, folium
, gdal
, geopandas
, matplotlib
, networkx
, numpy
, pandas
, pythonOlder
, rasterio
, requests
, Rtree
, scikit-learn
, scipy
, shapely
}:
buildPythonPackage rec {
pname = "osmnx";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-17duWrg48Qb4ojYYFX4HBpPLeVgHn1WV84KVATvBnzY=";
};
propagatedBuildInputs = [
geopandas
matplotlib
networkx
numpy
pandas
requests
Rtree
shapely
folium
scikit-learn
scipy
gdal
rasterio
];
# Tests require 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";
changelog = "https://github.com/gboeing/osmnx/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}