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.2"; 17 18 src = fetchFromGitHub { 19 owner = "mocnik-science"; 20 repo = "osm-python-tools"; 21 rev = "v${version}"; 22 sha256 = "1m5ai9h1zbp79x0vb138fmyh2hg8lqp859s7j33lra9hds6wb40a"; 23 }; 24 25 # Upstream setup.py has test dependencies in `install_requires` argument. 26 # Remove them, as we don't run the tests. 27 patches = [ ./remove-test-only-dependencies.patch ]; 28 29 propagatedBuildInputs = [ 30 beautifulsoup4 31 geojson 32 lxml 33 matplotlib 34 numpy 35 pandas 36 ujson 37 xarray 38 ]; 39 40 # tests touch network 41 doCheck = false; 42 43 pythonImportsCheck = [ 44 "OSMPythonTools" 45 "OSMPythonTools.api" 46 "OSMPythonTools.data" 47 "OSMPythonTools.element" 48 "OSMPythonTools.nominatim" 49 "OSMPythonTools.overpass" 50 ]; 51 52 meta = with lib; { 53 description = "A library to access OpenStreetMap-related services"; 54 longDescription = '' 55 The python package OSMPythonTools provides easy access to 56 OpenStreetMap-related services, among them an Overpass endpoint, 57 Nominatim, and the OpenStreetMap editing API. 58 ''; 59 homepage = "https://github.com/mocnik-science/osm-python-tools"; 60 license = licenses.gpl3Only; 61 maintainers = with maintainers; [ das-g ]; 62 }; 63}