depot/third_party/nixpkgs/pkgs/development/python-modules/osmnx/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
folium,
gdal,
geopandas,
hatchling,
matplotlib,
networkx,
numpy,
pandas,
pythonOlder,
rasterio,
requests,
rtree,
scikit-learn,
scipy,
shapely,
}:
buildPythonPackage rec {
pname = "osmnx";
version = "1.9.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gboeing";
repo = "osmnx";
rev = "refs/tags/v${version}";
hash = "sha256-od/0IuiK2CvrD0lfcTzkImK/5hcm6m61ULYzEtv/YeA=";
};
nativeBuildInputs = [ hatchling ];
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 = "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 ];
};
}