2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
folium,
|
|
|
|
gdal,
|
|
|
|
geopandas,
|
|
|
|
hatchling,
|
|
|
|
matplotlib,
|
|
|
|
networkx,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pythonOlder,
|
|
|
|
rasterio,
|
|
|
|
requests,
|
|
|
|
rtree,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
shapely,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "osmnx";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.9.3";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-02-02 18:25:31 +00:00
|
|
|
owner = "gboeing";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "osmnx";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-Tn800wFoPi5VkZmu9wUVM+EmCj/xxU2EJ6iwnA1VKXo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
build-system = [ hatchling ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
dependencies = [
|
2023-02-02 18:25:31 +00:00
|
|
|
geopandas
|
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
requests
|
2023-03-15 16:39:30 +00:00
|
|
|
rtree
|
2023-02-02 18:25:31 +00:00
|
|
|
shapely
|
|
|
|
folium
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
gdal
|
|
|
|
rasterio
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# Tests require network
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "osmnx" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gboeing/osmnx";
|
2024-07-01 15:47:52 +00:00
|
|
|
changelog = "https://github.com/gboeing/osmnx/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ psyanticy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|