forked from mirrors/nixpkgs
osmpythontools: init at 0.2.6
This commit is contained in:
parent
eb8ab69cc4
commit
a0a724938e
60
pkgs/development/python-modules/osmpythontools/default.nix
Normal file
60
pkgs/development/python-modules/osmpythontools/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, beautifulsoup4
|
||||
, geojson
|
||||
, lxml
|
||||
, matplotlib
|
||||
, numpy
|
||||
, pandas
|
||||
, ujson
|
||||
, xarray
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "osmpythontools";
|
||||
version = "0.2.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "OSMPythonTools";
|
||||
inherit version;
|
||||
sha256 = "efc72e3963971c6c7fd94bd374704a5b78eb6c07397a4ffb5f9176c1e4aee096";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
geojson
|
||||
lxml
|
||||
matplotlib
|
||||
numpy
|
||||
pandas
|
||||
ujson
|
||||
xarray
|
||||
];
|
||||
|
||||
patches = [ ./remove-unused-dependency.patch ];
|
||||
|
||||
# no tests included
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
diff --git a/OSMPythonTools.egg-info/requires.txt b/OSMPythonTools.egg-info/requires.txt
|
||||
index 16a5019..e58155c 100644
|
||||
--- a/OSMPythonTools.egg-info/requires.txt
|
||||
+++ b/OSMPythonTools.egg-info/requires.txt
|
||||
@@ -1,5 +1,4 @@
|
||||
beautifulsoup4
|
||||
-datetime
|
||||
geojson
|
||||
lxml
|
||||
matplotlib
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 08e9455..1a6435e 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -14,7 +14,6 @@ setup(
|
||||
packages = ['OSMPythonTools', 'OSMPythonTools.internal'],
|
||||
install_requires = [
|
||||
'beautifulsoup4',
|
||||
- 'datetime',
|
||||
'geojson',
|
||||
'lxml',
|
||||
'matplotlib',
|
|
@ -949,6 +949,8 @@ in {
|
|||
|
||||
osmnx = callPackage ../development/python-modules/osmnx { };
|
||||
|
||||
osmpythontools = callPackage ../development/python-modules/osmpythontools { };
|
||||
|
||||
outcome = callPackage ../development/python-modules/outcome {};
|
||||
|
||||
ovito = toPythonModule (pkgs.libsForQt5.callPackage ../development/python-modules/ovito {
|
||||
|
|
Loading…
Reference in a new issue