1{ lib
2, buildPythonPackage
3, fetchPypi
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.2.6";
17
18 src = fetchPypi {
19 pname = "OSMPythonTools";
20 inherit version;
21 sha256 = "efc72e3963971c6c7fd94bd374704a5b78eb6c07397a4ffb5f9176c1e4aee096";
22 };
23
24 propagatedBuildInputs = [
25 beautifulsoup4
26 geojson
27 lxml
28 matplotlib
29 numpy
30 pandas
31 ujson
32 xarray
33 ];
34
35 patches = [ ./remove-unused-dependency.patch ];
36
37 # no tests included
38 doCheck = false;
39
40 pythonImportsCheck = [
41 "OSMPythonTools"
42 "OSMPythonTools.api"
43 "OSMPythonTools.data"
44 "OSMPythonTools.element"
45 "OSMPythonTools.nominatim"
46 "OSMPythonTools.overpass"
47 ];
48
49 meta = with lib; {
50 description = "A library to access OpenStreetMap-related services";
51 longDescription = ''
52 The python package OSMPythonTools provides easy access to
53 OpenStreetMap-related services, among them an Overpass endpoint,
54 Nominatim, and the OpenStreetMap editing API.
55 '';
56 homepage = "https://github.com/mocnik-science/osm-python-tools";
57 license = licenses.gpl3;
58 maintainers = with maintainers; [ das-g ];
59 };
60}