1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/development/python-modules/osmnx/default.nix
R. RyanTM 34483d88f5
python37Packages.osmnx: 0.8.1 -> 0.9
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-osmnx/versions
2019-03-29 18:21:42 +01:00

34 lines
1.1 KiB
Nix
Executable file

{ stdenv, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
, pandas, requests, Rtree, shapely, pytest, coverage, coveralls, folium, scikitlearn, scipy}:
buildPythonPackage rec {
pname = "osmnx";
version = "0.9";
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "v${version}";
sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
};
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikitlearn scipy ];
checkInputs = [ coverage pytest coveralls ];
#Fails when using sandboxing as it requires internet connection, works fine without it
doCheck = false;
#Check phase for the record
#checkPhase = ''
# coverage run --source osmnx -m pytest --verbose
#'';
meta = with stdenv.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;
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}