2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2020-12-25 13:55:36 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
with python3.pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MapProxy";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.15.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-SVKZDLH8IfdND0/BFj/lrqp7BNanpzkjuTxlSMGjuiY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
|
|
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3 # needed for caches service
|
|
|
|
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-11-03 02:18:15 +00:00
|
|
|
description = "Open source proxy for geospatial data";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mapproxy.org/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|