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