lol

Merge pull request #231735 from Dettorer/fix-mapnik

python3Packages.python-mapnik: fix build on x86_64

authored by

Martin Weinelt and committed by
GitHub
9ab371d5 285330f0

+10 -3
+9 -2
pkgs/development/python-modules/python-mapnik/default.nix
··· 8 8 , pillow 9 9 , pycairo 10 10 , pkg-config 11 - , boost 11 + , boost182 12 12 , cairo 13 13 , harfbuzz 14 14 , icu ··· 23 23 , sqlite 24 24 , nose 25 25 , pytestCheckHook 26 + , stdenv 26 27 }: 27 28 28 29 buildPythonPackage rec { ··· 60 61 61 62 buildInputs = [ 62 63 mapnik 63 - boost 64 + boost182 64 65 cairo 65 66 harfbuzz 66 67 icu ··· 98 99 preCheck = '' 99 100 # import from $out 100 101 rm -r mapnik 102 + '' + lib.optionalString stdenv.isDarwin '' 103 + # Replace the hardcoded /tmp references with $TMPDIR 104 + sed -i "s,/tmp,$TMPDIR,g" test/python_tests/*.py 101 105 ''; 102 106 103 107 # https://github.com/mapnik/python-mapnik/issues/255 ··· 106 110 "test_compare_map" 107 111 "test_dataraster_coloring" 108 112 "test_dataraster_query_point" 113 + "test_geometry_type" 109 114 "test_good_files" 110 115 "test_layer_init" 111 116 "test_load_save_map" ··· 128 133 "test_visual_zoom_all_rendering1" 129 134 "test_visual_zoom_all_rendering2" 130 135 "test_wgs84_inverse_forward" 136 + ] ++ lib.optional stdenv.isDarwin [ 137 + "test_passing_pycairo_context_pdf" 131 138 ]; 132 139 133 140 pythonImportsCheck = [ "mapnik" ];
+1 -1
pkgs/top-level/python-packages.nix
··· 9757 9757 9758 9758 python-mapnik = callPackage ../development/python-modules/python-mapnik rec { 9759 9759 inherit (pkgs) pkg-config cairo icu libjpeg libpng libtiff libwebp proj zlib; 9760 - boost = pkgs.boost.override { 9760 + boost182 = pkgs.boost182.override { 9761 9761 enablePython = true; 9762 9762 inherit python; 9763 9763 };