mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
0f8e7ab737
Switched to using python3, because pyproj fails to build with python2
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ lib
|
|
, pkgs
|
|
, python3
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
buildPythonApplication rec {
|
|
pname = "MapProxy";
|
|
version = "1.13.0";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0qi63ap8yi5g2cas33jv4jsmdrl6yv3qp6bh0zxrfpkb704lcng4";
|
|
};
|
|
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 ];
|
|
};
|
|
}
|