62 lines
1.3 KiB
Nix
Raw Normal View History

2020-02-18 15:28:41 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2020-02-18 15:28:41 +01:00
, beautifulsoup4
, geojson
, lxml
, matplotlib
, numpy
, pandas
, ujson
, xarray
}:
buildPythonPackage rec {
pname = "osmpythontools";
version = "0.2.9";
2020-02-18 15:28:41 +01:00
src = fetchFromGitHub {
owner = "mocnik-science";
repo = "osm-python-tools";
rev = "v${version}";
sha256 = "1qpj03fgn8rmrg9a9vk7bw32k9hdy15g5p2q3a6q52ykpb78jdz5";
2020-02-18 15:28:41 +01:00
};
patches = [ ./remove-test-only-dependencies.patch ];
2020-02-18 15:28:41 +01:00
propagatedBuildInputs = [
beautifulsoup4
geojson
lxml
matplotlib
numpy
pandas
ujson
xarray
];
# tests touch network
2020-02-18 15:28:41 +01:00
doCheck = false;
pythonImportsCheck = [
"OSMPythonTools"
"OSMPythonTools.api"
"OSMPythonTools.data"
"OSMPythonTools.element"
"OSMPythonTools.nominatim"
"OSMPythonTools.overpass"
];
meta = with lib; {
description = "A library to access OpenStreetMap-related services";
longDescription = ''
The python package OSMPythonTools provides easy access to
OpenStreetMap-related services, among them an Overpass endpoint,
Nominatim, and the OpenStreetMap editing API.
'';
homepage = "https://github.com/mocnik-science/osm-python-tools";
license = licenses.gpl3;
maintainers = with maintainers; [ das-g ];
};
}