diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-10-09 12:11:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 12:11:27 -0500 |
commit | 9b0505abb7e9f4b1777549a89f3cfdd2fd39e216 (patch) | |
tree | fd1dd57289477f7defe8046d4aa762c49aeeaad1 /pkgs/development/python-modules | |
parent | 405a0682caa6a641e0e431877b5aedaac09ad019 (diff) | |
parent | aaa3e3f0b430afd8d0fb1f2ab4e17cdd12135fd2 (diff) | |
download | nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar.gz nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar.bz2 nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar.lz nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar.xz nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.tar.zst nixpkgs-9b0505abb7e9f4b1777549a89f3cfdd2fd39e216.zip |
Merge pull request #46898 from Assassinkin/osmnx
pythonPackages.osmnx: init at 0.8.2
Diffstat (limited to 'pkgs/development/python-modules')
-rwxr-xr-x | pkgs/development/python-modules/osmnx/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/osmnx/default.nix b/pkgs/development/python-modules/osmnx/default.nix new file mode 100755 index 00000000000..c34b75bd041 --- /dev/null +++ b/pkgs/development/python-modules/osmnx/default.nix @@ -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 ]; + }; +} + |