Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / osmpythontools / default.nix
blob3cb0bc49e724be3f62fab388aacf69467170423c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , beautifulsoup4
5 , geojson
6 , lxml
7 , matplotlib
8 , numpy
9 , pandas
10 , ujson
11 , xarray
14 buildPythonPackage rec {
15   pname = "osmpythontools";
16   version = "0.3.0";
18   src = fetchFromGitHub {
19     owner = "mocnik-science";
20     repo = "osm-python-tools";
21     rev = "v${version}";
22     sha256 = "0r72z7f7kmvvbd9zvgci8rwmfj85xj34mb3x5dj3jcv5ij5j72yh";
23   };
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 ];
29   propagatedBuildInputs = [
30     beautifulsoup4
31     geojson
32     lxml
33     matplotlib
34     numpy
35     pandas
36     ujson
37     xarray
38   ];
40   # tests touch network
41   doCheck = false;
43   pythonImportsCheck = [
44     "OSMPythonTools"
45     "OSMPythonTools.api"
46     "OSMPythonTools.data"
47     "OSMPythonTools.element"
48     "OSMPythonTools.nominatim"
49     "OSMPythonTools.overpass"
50   ];
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   };