Files
nixpkgs/pkgs/development/python-modules/osmnx/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
folium,
gdal,
geopandas,
matplotlib,
networkx,
numpy,
pandas,
rasterio,
requests,
rtree,
scikit-learn,
scipy,
shapely,
uv-build,
}:
buildPythonPackage rec {
pname = "osmnx";
version = "2.0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "gboeing";
repo = "osmnx";
tag = "v${version}";
hash = "sha256-XIvwLUvpl+AgrtR9mOkRXhxLc8mtSPk3+5779i/F+2s=";
};
build-system = [ uv-build ];
dependencies = [
geopandas
matplotlib
networkx
numpy
pandas
requests
rtree
shapely
folium
scikit-learn
scipy
gdal
rasterio
];
# Tests require network
doCheck = false;
pythonImportsCheck = [ "osmnx" ];
meta = {
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/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ psyanticy ];
teams = [ lib.teams.geospatial ];
};
}