Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy 2, pandas, requests, Rtree, shapely, pytest, coverage, coveralls, folium, scikitlearn, scipy}: 3 4buildPythonPackage rec { 5 pname = "osmnx"; 6 version = "0.9"; 7 8 src = fetchFromGitHub { 9 owner = "gboeing"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z"; 13 }; 14 15 propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikitlearn scipy ]; 16 17 checkInputs = [ coverage pytest coveralls ]; 18 #Fails when using sandboxing as it requires internet connection, works fine without it 19 doCheck = false; 20 21 #Check phase for the record 22 #checkPhase = '' 23 # coverage run --source osmnx -m pytest --verbose 24 #''; 25 26 meta = with stdenv.lib; { 27 description = "A package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX."; 28 homepage = "https://github.com/gboeing/osmnx"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ psyanticy ]; 31 }; 32} 33