nixpkgs/pkgs/development/python-modules/osmnx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
975 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, geopandas, matplotlib, networkx, numpy
, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy, gdal, rasterio}:
2018-09-19 15:14:37 +00:00
buildPythonPackage rec {
pname = "osmnx";
2022-08-08 14:07:25 +00:00
version = "1.2.2";
2022-06-02 15:17:12 +00:00
disabled = pythonOlder "3.8";
2018-09-19 15:14:37 +00:00
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "v${version}";
2022-08-08 14:07:25 +00:00
sha256 = "sha256-+dUv1QrUmCIOCyUyjYX1kJtZrPuSp3t9xz/sRV7ppgA=";
2018-09-19 15:14:37 +00:00
};
propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];
2018-09-19 15:14:37 +00:00
# requires network
2018-09-19 15:14:37 +00:00
doCheck = false;
pythonImportsCheck = [ "osmnx" ];
2018-09-19 15:14:37 +00:00
meta = with lib; {
2018-09-19 15:14:37 +00:00
description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX.";
homepage = "https://github.com/gboeing/osmnx";
2018-09-19 15:14:37 +00:00
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}