diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-29 07:32:59 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-29 07:32:59 +0300 |
commit | 5e6302fadc369fb36d1308dcbd748e35e15f0e7c (patch) | |
tree | 617eef49d7a1f5f4258fdadf6faa8151a752d247 /pkgs/servers/geospatial/mapproxy | |
parent | 2b5e1bce52fe7300bd805e40c89be1a7184de5a2 (diff) |
mapproxy: move to servers/geospatial
Diffstat (limited to 'pkgs/servers/geospatial/mapproxy')
-rw-r--r-- | pkgs/servers/geospatial/mapproxy/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/servers/geospatial/mapproxy/default.nix b/pkgs/servers/geospatial/mapproxy/default.nix new file mode 100644 index 0000000000000..75e7f64227bba --- /dev/null +++ b/pkgs/servers/geospatial/mapproxy/default.nix @@ -0,0 +1,41 @@ +{ lib +, pkgs +, python3 +}: + +with python3.pkgs; +buildPythonApplication rec { + pname = "MapProxy"; + version = "1.15.1"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-SVKZDLH8IfdND0/BFj/lrqp7BNanpzkjuTxlSMGjuiY="; + }; + 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; { + description = "Open source proxy for geospatial data"; + homepage = "https://mapproxy.org/"; + license = licenses.asl20; + maintainers = with maintainers; [ rakesh4g ]; + }; +} |