pythonPackages.osmnx: init at 0.8.2
This commit is contained in:
parent
d5e854b646
commit
aaa3e3f0b4
33
pkgs/development/python-modules/osmnx/default.nix
Executable file
33
pkgs/development/python-modules/osmnx/default.nix
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
|
||||||
|
, pandas, requests, Rtree, shapely, pytest, coverage, coveralls, folium, scikitlearn, scipy}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "osmnx";
|
||||||
|
version = "0.8.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "gboeing";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1pn2v3dhbmb0yhqif9padg7x3sdx27pgfr95i3kxj4v0yrviaf9k";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -368,6 +368,8 @@ in {
|
|||||||
|
|
||||||
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
||||||
|
|
||||||
|
osmnx = callPackage ../development/python-modules/osmnx { };
|
||||||
|
|
||||||
outcome = callPackage ../development/python-modules/outcome {};
|
outcome = callPackage ../development/python-modules/outcome {};
|
||||||
|
|
||||||
palettable = callPackage ../development/python-modules/palettable { };
|
palettable = callPackage ../development/python-modules/palettable { };
|
||||||
|
Loading…
Reference in New Issue
Block a user