about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorNikolay Korotkiy2024-09-02 20:36:34 +0400
committerGitHub2024-09-02 20:36:34 +0400
commite05baacd435b765ffb57f36df0b292c0a266820b (patch)
treeeefad3f00cfb1eeca60b7f4a3ceb8478f0c2296d /pkgs/by-name
parentfdfb5c47731fcb5e815dcfd2ed1bc39de7da0790 (diff)
parentd47fe12b69909831ae289175352721815cf4f18d (diff)
mapproxy: 2.2.0 -> 3.0.1 (#338741)
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ma/mapproxy/package.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/ma/mapproxy/package.nix b/pkgs/by-name/ma/mapproxy/package.nix
new file mode 100644
index 000000000000..ef39151c0104
--- /dev/null
+++ b/pkgs/by-name/ma/mapproxy/package.nix
@@ -0,0 +1,51 @@
+{
+  lib,
+  python3,
+  fetchFromGitHub,
+}:
+
+with python3.pkgs;
+buildPythonApplication rec {
+  pname = "mapproxy";
+  version = "3.0.1";
+
+  src = fetchFromGitHub {
+    owner = "mapproxy";
+    repo = "mapproxy";
+    rev = version;
+    hash = "sha256-74hUJIy1+DaKjUsCgd4+2MdMPGqqDUuHDrhBCFNn8Dk=";
+  };
+
+  prePatch = ''
+    substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
+  '';
+
+  dependencies = [
+    boto3 # needed for caches service
+    future
+    jsonschema
+    pillow
+    pyyaml
+    pyproj
+    shapely
+    gdal
+    lxml
+    setuptools
+    werkzeug
+  ];
+  # 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 = {
+    description = "Open source proxy for geospatial data";
+    homepage = "https://mapproxy.org/";
+    license = lib.licenses.asl20;
+    maintainers = lib.teams.geospatial.members ++ (with lib.maintainers; [ rakesh4g ]);
+  };
+}