Files
nixpkgs/pkgs/by-name/ma/mapproxy/package.nix
2026-08-10 23:07:35 +02:00

60 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "mapproxy";
version = "7.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mapproxy";
repo = "mapproxy";
tag = finalAttrs.version;
hash = "sha256-R2lL0lEXnu3tAg9fsI7zTY7DSMcxmu9ohUTkG5XL6l0=";
};
prePatch = ''
substituteInPlace mapproxy/util/ext/serving.py --replace-warn "args = [sys.executable] + sys.argv" "args = sys.argv"
'';
build-system = with python3Packages; [ setuptools ];
pythonRemoveDeps = [ "future" ];
dependencies = with python3Packages; [
babel
boto3 # needed for caches service
jinja2
jsonschema
multiprocess
pillow
python-dateutil
pyyaml
pyproj
requests
shapely
gdal
lxml
werkzeug
];
# Tests are disabled:
# 1) Dependency list is huge.
# https://github.com/mapproxy/mapproxy/blob/master/requirements-tests.txt
doCheck = false;
pythonImportsCheck = [ "mapproxy" ];
meta = {
description = "Open source proxy for geospatial data";
homepage = "https://mapproxy.org/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ rakesh4g ];
teams = [ lib.teams.geospatial ];
};
})