2020-02-06 13:32:44 +01:00
|
|
|
{ lib
|
|
|
|
, pkgs
|
2020-12-22 20:49:17 +01:00
|
|
|
, python3
|
2020-02-06 13:32:44 +01:00
|
|
|
}:
|
2020-12-22 20:49:17 +01:00
|
|
|
|
|
|
|
with python3.pkgs;
|
2020-02-06 13:32:44 +01:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MapProxy";
|
2020-12-22 20:49:17 +01:00
|
|
|
version = "1.13.0";
|
2020-02-06 13:32:44 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-22 20:49:17 +01:00
|
|
|
sha256 = "0qi63ap8yi5g2cas33jv4jsmdrl6yv3qp6bh0zxrfpkb704lcng4";
|
2020-02-06 13:32:44 +01:00
|
|
|
};
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
|
|
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
2020-02-18 08:25:03 +01:00
|
|
|
boto3 # needed for caches service
|
2020-02-06 13:32:44 +01:00
|
|
|
pillow
|
|
|
|
pyyaml
|
|
|
|
pyproj
|
|
|
|
shapely
|
|
|
|
gdal
|
|
|
|
lxml
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
# Tests are disabled:
|
|
|
|
# 1) Dependency list is huge.
|
|
|
|
# https://github.com/mapproxy/mapproxy/blob/master/requirements-tests.txt
|
|
|
|
#
|
|
|
|
# 2) There are security issues with package Riak
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/33876
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/56480
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "Open source proxy for geospatial data";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mapproxy.org/";
|
2020-02-06 13:32:44 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
2020-04-01 03:11:51 +02:00
|
|
|
}
|