nixpkgs/pkgs/applications/misc/mapproxy/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2020-02-06 12:32:44 +00:00
{ lib
, pkgs
, python3
2020-02-06 12:32:44 +00:00
}:
with python3.pkgs;
2020-02-06 12:32:44 +00:00
buildPythonApplication rec {
pname = "MapProxy";
2021-08-15 00:26:28 +00:00
version = "1.13.2";
2020-02-06 12:32:44 +00:00
src = fetchPypi {
inherit pname version;
2021-08-15 00:26:28 +00:00
sha256 = "1c2ba9424f600f35b7b883366296089cf61ac7c803da5d411a334c7a39ccf84b";
2020-02-06 12:32:44 +00:00
};
prePatch = ''
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
'';
propagatedBuildInputs = [
boto3 # needed for caches service
2020-02-06 12:32:44 +00: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; {
description = "Open source proxy for geospatial data";
homepage = "https://mapproxy.org/";
2020-02-06 12:32:44 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ rakesh4g ];
};
}