mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "mapproxy";
|
|
version = "4.1.2";
|
|
disabled = python3Packages.pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mapproxy";
|
|
repo = "mapproxy";
|
|
tag = version;
|
|
hash = "sha256-sh0kViv1Ax/2YPL2ON+X03d5Moa2oPWhb4Rp6Ni5AAY=";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
|
|
'';
|
|
|
|
dependencies = with python3Packages; [
|
|
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
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|