mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
b0b855139d
also: - replace gpl3 with gpl3Only - add patch comment
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, beautifulsoup4
|
|
, geojson
|
|
, lxml
|
|
, matplotlib
|
|
, numpy
|
|
, pandas
|
|
, ujson
|
|
, xarray
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "osmpythontools";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mocnik-science";
|
|
repo = "osm-python-tools";
|
|
rev = "v${version}";
|
|
sha256 = "0r72z7f7kmvvbd9zvgci8rwmfj85xj34mb3x5dj3jcv5ij5j72yh";
|
|
};
|
|
|
|
# Upstream setup.py has test dependencies in `install_requires` argument.
|
|
# Remove them, as we don't run the tests.
|
|
patches = [ ./remove-test-only-dependencies.patch ];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
geojson
|
|
lxml
|
|
matplotlib
|
|
numpy
|
|
pandas
|
|
ujson
|
|
xarray
|
|
];
|
|
|
|
# tests touch network
|
|
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.gpl3Only;
|
|
maintainers = with maintainers; [ das-g ];
|
|
};
|
|
}
|