2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
beautifulsoup4,
|
|
|
|
geojson,
|
|
|
|
lxml,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
ujson,
|
|
|
|
xarray,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "osmpythontools";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.3.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mocnik-science";
|
|
|
|
repo = "osm-python-tools";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-lTDA1Rad9aYI/ymU/0xzdJHmebUGcpVJ0GW7D0Ujdko=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
geojson
|
|
|
|
lxml
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
ujson
|
|
|
|
xarray
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# tests touch network
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"OSMPythonTools"
|
|
|
|
"OSMPythonTools.api"
|
|
|
|
"OSMPythonTools.data"
|
|
|
|
"OSMPythonTools.element"
|
|
|
|
"OSMPythonTools.nominatim"
|
|
|
|
"OSMPythonTools.overpass"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library to access OpenStreetMap-related services";
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/mocnik-science/osm-python-tools/v${version}/version-history.md";
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|