Merge pull request #169997 from armeenm/mapserver-python3

mapserver: switch to python3

authored by Artturi and committed by GitHub c8a723fb bb56c832

+3 -3
+3 -3
pkgs/servers/mapserver/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz 3 3 , libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib 4 - , withPython ? true, swig, python2 4 + , withPython ? true, swig, python3 5 5 }: 6 6 7 7 stdenv.mkDerivation rec { ··· 18 18 nativeBuildInputs = [ 19 19 cmake 20 20 pkg-config 21 - ] ++ lib.optional withPython swig; 21 + ] ++ lib.optional withPython [ swig python3.pkgs.setuptools ]; 22 22 23 23 buildInputs = [ 24 24 cairo ··· 38 38 proj 39 39 protobufc 40 40 zlib 41 - ] ++ lib.optional withPython python2; 41 + ] ++ lib.optional withPython python3; 42 42 43 43 cmakeFlags = [ 44 44 "-DWITH_KML=ON"