1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 beautifulsoup4, 6 geojson, 7 lxml, 8 matplotlib, 9 numpy, 10 pandas, 11 ujson, 12 xarray, 13}: 14 15buildPythonPackage rec { 16 pname = "osmpythontools"; 17 version = "0.3.5"; 18 format = "setuptools"; 19 20 src = fetchFromGitHub { 21 owner = "mocnik-science"; 22 repo = "osm-python-tools"; 23 rev = "v${version}"; 24 hash = "sha256-lTDA1Rad9aYI/ymU/0xzdJHmebUGcpVJ0GW7D0Ujdko="; 25 }; 26 27 propagatedBuildInputs = [ 28 beautifulsoup4 29 geojson 30 lxml 31 matplotlib 32 numpy 33 pandas 34 ujson 35 xarray 36 ]; 37 38 # tests touch network 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "OSMPythonTools" 43 "OSMPythonTools.api" 44 "OSMPythonTools.data" 45 "OSMPythonTools.element" 46 "OSMPythonTools.nominatim" 47 "OSMPythonTools.overpass" 48 ]; 49 50 meta = with lib; { 51 description = "Library to access OpenStreetMap-related services"; 52 longDescription = '' 53 The python package OSMPythonTools provides easy access to 54 OpenStreetMap-related services, among them an Overpass endpoint, 55 Nominatim, and the OpenStreetMap editing API. 56 ''; 57 homepage = "https://github.com/mocnik-science/osm-python-tools"; 58 license = licenses.gpl3Only; 59 changelog = "https://raw.githubusercontent.com/mocnik-science/osm-python-tools/v${version}/version-history.md"; 60 maintainers = with maintainers; [ das-g ]; 61 teams = [ teams.geospatial ]; 62 }; 63}