depot/pkgs/by-name/ma/mapproxy/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

51 lines
1.1 KiB
Nix

{
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 ]);
};
}